Skip to content

Commit

Permalink
fix: migration
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed May 22, 2024
1 parent 2cad9e6 commit d3be301
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
6 changes: 0 additions & 6 deletions app/upgrades/v1_5/v1_4_bundles_types/params.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion app/upgrades/v1_5/v1_4_pool_types/getters_pool.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package v1_4_pool_types

import (
"cosmossdk.io/store/prefix"
storetypes "cosmossdk.io/store/types"
"github.com/KYVENetwork/chain/x/pool/types"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
)

// GetAllPools returns all pools
func GetAllPools(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.Codec) (list []Pool) {
store := ctx.KVStore(storeKey)
store := prefix.NewStore(ctx.KVStore(storeKey), types.PoolKey)
iterator := storetypes.KVStorePrefixIterator(store, []byte{})

defer iterator.Close()
Expand Down
9 changes: 0 additions & 9 deletions app/upgrades/v1_5/v1_4_pool_types/pool.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d3be301

Please sign in to comment.