Skip to content

Commit

Permalink
tmp save
Browse files Browse the repository at this point in the history
  • Loading branch information
avery committed Oct 30, 2024
1 parent ba644c0 commit 09ff039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/mt/keeper/balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion modules/mt/keeper/denom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 09ff039

Please sign in to comment.