From 09ff0392b11bf8ad418610cbb8caa636323ae0b4 Mon Sep 17 00:00:00 2001 From: avery <> Date: Wed, 30 Oct 2024 14:14:01 +0100 Subject: [PATCH] tmp save --- modules/mt/keeper/balance.go | 3 ++- modules/mt/keeper/denom.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/mt/keeper/balance.go b/modules/mt/keeper/balance.go index 6dab84ad..ee12feae 100644 --- a/modules/mt/keeper/balance.go +++ b/modules/mt/keeper/balance.go @@ -5,6 +5,7 @@ import ( "math" errorsmod "cosmossdk.io/errors" + storetypes "cosmossdk.io/store/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -62,7 +63,7 @@ func (k Keeper) GetBalance(ctx sdk.Context, func (k Keeper) getBalances(ctx sdk.Context) []types.Owner { store := ctx.KVStore(k.storeKey) - it := sdk.KVStorePrefixIterator(store, types.PrefixBalance) + it := storetypes.KVStorePrefixIterator(store, types.PrefixBalance) defer it.Close() ownerMap := make(map[string]map[string]map[string]uint64) diff --git a/modules/mt/keeper/denom.go b/modules/mt/keeper/denom.go index 5d87ada4..3f6cf83c 100644 --- a/modules/mt/keeper/denom.go +++ b/modules/mt/keeper/denom.go @@ -5,6 +5,7 @@ import ( "fmt" errorsmod "cosmossdk.io/errors" + storetypes "cosmossdk.io/store/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -51,7 +52,7 @@ func (k Keeper) GetDenom(ctx sdk.Context, id string) (denom types.Denom, found b // GetDenoms returns all the denoms func (k Keeper) GetDenoms(ctx sdk.Context) (denoms []types.Denom) { store := ctx.KVStore(k.storeKey) - iterator := sdk.KVStorePrefixIterator(store, types.KeyDenom("")) + iterator := storetypes.KVStorePrefixIterator(store, types.KeyDenom("")) defer iterator.Close() for ; iterator.Valid(); iterator.Next() {