From dae90de78d06ced807088dc5e10c6e343565b87f Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Jan 2025 15:37:27 +0100 Subject: [PATCH] fix tests --- precompiles/bank/method_test.go | 2 ++ precompiles/staking/staking_test.go | 1 + x/crosschain/types/message_whitelist_erc20_test.go | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/precompiles/bank/method_test.go b/precompiles/bank/method_test.go index d820d38f71..b4c2153838 100644 --- a/precompiles/bank/method_test.go +++ b/precompiles/bank/method_test.go @@ -1,6 +1,7 @@ package bank import ( + sdkmath "cosmossdk.io/math" "math/big" "testing" @@ -634,6 +635,7 @@ func setupGasCoin( symbol, 8, nil, + sdkmath.NewUintFromString("100000000000000000000000000"), ) require.NoError(t, err) assertContractDeployment(t, *evmk, ctx, addr) diff --git a/precompiles/staking/staking_test.go b/precompiles/staking/staking_test.go index 4b0307c4dc..adf96a5e7c 100644 --- a/precompiles/staking/staking_test.go +++ b/precompiles/staking/staking_test.go @@ -508,6 +508,7 @@ func setupGasCoin( symbol, 8, nil, + math.NewUintFromString("100000000000000000000000000"), ) require.NoError(t, err) assertContractDeployment(t, *evmk, ctx, addr) diff --git a/x/crosschain/types/message_whitelist_erc20_test.go b/x/crosschain/types/message_whitelist_erc20_test.go index 29ded2cc92..49af33763c 100644 --- a/x/crosschain/types/message_whitelist_erc20_test.go +++ b/x/crosschain/types/message_whitelist_erc20_test.go @@ -100,7 +100,7 @@ func TestMsgWhitelistERC20_ValidateBasic(t *testing.T) { Decimals: 6, GasLimit: 10, }, - error: false, + error: true, }, { name: "valid message with evm asset address",