From a2bdf5c3a001c6ef8e5c5a6b624195f3449be82c Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Tue, 23 May 2023 11:27:35 +0400 Subject: [PATCH] save keys to map --- x/interchainqueries/types/genesis.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/interchainqueries/types/genesis.go b/x/interchainqueries/types/genesis.go index a955f6e5f..9ec099a69 100644 --- a/x/interchainqueries/types/genesis.go +++ b/x/interchainqueries/types/genesis.go @@ -25,6 +25,7 @@ func (gs GenesisState) Validate() error { if seenIDs[val.Id] { return sdkerrors.Wrapf(ErrInvalidQueryID, "duplicate query id: %d", val.Id) } + seenIDs[val.Id] = true _, err = sdk.AccAddressFromBech32(val.Owner) if err != nil {