Skip to content

Commit

Permalink
fixed inactive proposals iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Jun 26, 2023
1 parent 1dc47eb commit c5e98e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/gov/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package keeper

import (
"fmt"

"github.com/tendermint/tendermint/libs/log"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down Expand Up @@ -192,7 +193,7 @@ func (keeper Keeper) ActiveProposalQueueIterator(ctx sdk.Context, endBlock uint6
// InactiveProposalQueueIterator returns an sdk.Iterator for all the proposals in the Inactive Queue that expire by endBlock
func (keeper Keeper) InactiveProposalQueueIterator(ctx sdk.Context, endBlock uint64) sdk.Iterator {
store := ctx.KVStore(keeper.storeKey)
return sdk.KVStorePrefixIterator(store, types.ActiveProposalByTimeKey(endBlock))
return sdk.KVStorePrefixIterator(store, types.InactiveProposalByTimeKey(endBlock))
}

// assertMetadataLength returns an error if given metadata length
Expand Down

0 comments on commit c5e98e1

Please sign in to comment.