Skip to content

Commit 0a9501b

Browse files
committed
fix
1 parent 7e55e00 commit 0a9501b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"sync"
2020
"time"
2121

22-
"github.com/gnolang/gno/gno.land/pkg/gnoland/ugnot"
2322
"github.com/gnolang/gno/gnovm/pkg/doc"
2423
"github.com/gnolang/gno/gnovm/pkg/gnoenv"
2524
gno "github.com/gnolang/gno/gnovm/pkg/gnolang"
@@ -1118,12 +1117,11 @@ func (vm *VMKeeper) QueryStorage(ctx sdk.Context, pkgPath string) (string, error
11181117

11191118
func (vm *VMKeeper) processStorageDeposit(ctx sdk.Context, caller crypto.Address, deposit std.Coins, gnostore gno.Store, params Params) error {
11201119
realmDiffs := gnostore.RealmStorageDiffs()
1121-
defaultDenom := ugnot.Denom
1120+
defaultDepositCoin := std.MustParseCoin(params.DefaultDeposit)
1121+
defaultDenom := defaultDepositCoin.Denom
11221122
depositAmt := deposit.AmountOf(defaultDenom)
11231123
if depositAmt == 0 {
1124-
depositCoin := std.MustParseCoin(params.DefaultDeposit)
1125-
depositAmt = depositCoin.Amount
1126-
defaultDenom = depositCoin.Denom
1124+
depositAmt = defaultDepositCoin.Amount
11271125
}
11281126
price := std.MustParseCoin(params.StoragePrice)
11291127

0 commit comments

Comments
 (0)