Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Aug 30, 2024
1 parent 26abbca commit 3e6551c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions x/fungible/keeper/gas_coin_and_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down

0 comments on commit 3e6551c

Please sign in to comment.