Skip to content

Commit 7e55e00

Browse files
committed
fix
1 parent d6eb74a commit 7e55e00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gno.land/pkg/sdk/vm/keeper.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,8 +1121,9 @@ func (vm *VMKeeper) processStorageDeposit(ctx sdk.Context, caller crypto.Address
11211121
defaultDenom := ugnot.Denom
11221122
depositAmt := deposit.AmountOf(defaultDenom)
11231123
if depositAmt == 0 {
1124-
depositAmt = std.MustParseCoin(params.DefaultDeposit).Amount
1125-
defaultDenom = params.DefaultDeposit
1124+
depositCoin := std.MustParseCoin(params.DefaultDeposit)
1125+
depositAmt = depositCoin.Amount
1126+
defaultDenom = depositCoin.Denom
11261127
}
11271128
price := std.MustParseCoin(params.StoragePrice)
11281129

0 commit comments

Comments
 (0)