Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
linhpn99 committed Aug 8, 2024
1 parent c4e1825 commit 49dd7bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tm2/pkg/sdk/bank/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,13 @@ func (tck TotalCoinKeeper) GetTotalCoin(ctx sdk.Context, denom string) int64 {
}

// SetTotalCoin sets the total coin amount for a given denomination.
func (tck TotalCoinKeeper) setTotalCoin(ctx sdk.Context, coin std.Coin) error {
func (tck TotalCoinKeeper) setTotalCoin(ctx sdk.Context, totalCoin std.Coin) error {
stor := ctx.Store(tck.key)
bz, err := amino.MarshalAny(coin)
bz, err := amino.MarshalAny(totalCoin)
if err != nil {
return err
}
stor.Set(TotalCoinStoreKey(coin.Denom), bz)
stor.Set(TotalCoinStoreKey(totalCoin.Denom), bz)
return nil
}

Expand Down

0 comments on commit 49dd7bc

Please sign in to comment.