Skip to content

Commit

Permalink
Revert "chore: update import alias to align (#7710)"
Browse files Browse the repository at this point in the history
This reverts commit a14feef.
  • Loading branch information
gjermundgaraba committed Feb 7, 2025
1 parent d627f79 commit 819a319
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/apps/transfer/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

corestore "cosmossdk.io/core/store"
"cosmossdk.io/log"
sdkmath "cosmossdk.io/math"
"cosmossdk.io/math"
"cosmossdk.io/store/prefix"
storetypes "cosmossdk.io/store/types"
banktypes "cosmossdk.io/x/bank/types"
Expand Down Expand Up @@ -230,10 +230,10 @@ func (k Keeper) GetTotalEscrowForDenom(ctx context.Context, denom string) sdk.Co
panic(err)
}
if len(bz) == 0 {
return sdk.NewCoin(denom, sdkmath.ZeroInt())
return sdk.NewCoin(denom, math.ZeroInt())
}

amount := sdkmath.Int{}
amount := math.Int{}
if err := amount.Unmarshal(bz); err != nil {
panic(err)
}
Expand Down Expand Up @@ -293,7 +293,7 @@ func (k Keeper) IterateTokensInEscrow(ctx context.Context, storeprefix []byte, c
continue // denom is empty
}

amount := sdkmath.Int{}
amount := math.Int{}
if err := amount.Unmarshal(iterator.Value()); err != nil {
continue // total escrow amount cannot be unmarshalled to integer
}
Expand Down

0 comments on commit 819a319

Please sign in to comment.