From 3e6551c5f3708e03223e8f877481da44dc98a245 Mon Sep 17 00:00:00 2001 From: lumtis Date: Fri, 30 Aug 2024 15:36:35 +0200 Subject: [PATCH] fix test --- x/fungible/keeper/gas_coin_and_pool_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/x/fungible/keeper/gas_coin_and_pool_test.go b/x/fungible/keeper/gas_coin_and_pool_test.go index 2fc1929202..edadb50c2b 100644 --- a/x/fungible/keeper/gas_coin_and_pool_test.go +++ b/x/fungible/keeper/gas_coin_and_pool_test.go @@ -43,6 +43,13 @@ func setupGasCoin( ) require.NoError(t, err) assertContractDeployment(t, evmk, ctx, addr) + + // increase the default liquidity cap + foreignCoin, found := k.GetForeignCoins(ctx, addr.Hex()) + require.True(t, found) + foreignCoin.LiquidityCap = sdk.NewUint(1e18).MulUint64(1e12) + k.SetForeignCoins(ctx, foreignCoin) + return addr } @@ -68,6 +75,13 @@ func deployZRC20( ) require.NoError(t, err) assertContractDeployment(t, evmk, ctx, addr) + + // increase the default liquidity cap + foreignCoin, found := k.GetForeignCoins(ctx, addr.Hex()) + require.True(t, found) + foreignCoin.LiquidityCap = sdk.NewUint(1e18).MulUint64(1e12) + k.SetForeignCoins(ctx, foreignCoin) + return addr }