From 6c3360f10259d5886986c3102a089c5352ba94b7 Mon Sep 17 00:00:00 2001 From: 0g-wh Date: Fri, 27 Sep 2024 14:26:07 +0000 Subject: [PATCH] fix tests --- app/ante/eip712_test.go | 1 - app/app_test.go | 10 ---------- x/precisebank/genesis_test.go | 6 +++--- x/precisebank/testutil/suite.go | 2 +- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/app/ante/eip712_test.go b/app/ante/eip712_test.go index 111addc6..d6969504 100644 --- a/app/ante/eip712_test.go +++ b/app/ante/eip712_test.go @@ -164,7 +164,6 @@ func (suite *EIP712TestSuite) SetupTest() { evmtypes.DefaultChainConfig(), // ChainConfig nil, // extraEIPs nil, // eip712AllowedMsgs - nil, // enabledPrecompiles ), nil, ) diff --git a/app/app_test.go b/app/app_test.go index 462a079e..7ab5b262 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -120,16 +120,6 @@ func TestLegacyMsgAreAminoRegistered(t *testing.T) { } } -// TestPrecompilesAreRegistered asserts that we have loaded the global precompile registry -// by checking if at least one precompile is set -// -// If this test fails then has '_ "github.com/kava-labs/kava/precompile/registry"' been imported? -func TestPrecompilesAreRegistered(t *testing.T) { - assert.Greater(t, len(modules.RegisteredModules()), 0, - "expected precompile registry to be imported and have at least one registered precompile", - ) -} - // catchPanic returns the panic value of the passed function. The second return indicates if the function panicked. func catchPanic(f func()) (panicValue interface{}, didPanic bool) { didPanic = true diff --git a/x/precisebank/genesis_test.go b/x/precisebank/genesis_test.go index d3520aa7..1e8a318a 100644 --- a/x/precisebank/genesis_test.go +++ b/x/precisebank/genesis_test.go @@ -72,7 +72,7 @@ func (suite *GenesisTestSuite) TestInitGenesis() { }, sdkmath.ZeroInt(), ), - "failed to validate precisebank genesis state: invalid balances: duplicate address kava1qy0xn7za", + "failed to validate precisebank genesis state: invalid balances: duplicate address 0g1qy20a4yf", }, { "invalid - module balance insufficient", @@ -85,7 +85,7 @@ func (suite *GenesisTestSuite) TestInitGenesis() { // 2 leftover from 0.999... + 0.999... sdkmath.NewInt(2), ), - "module account balance does not match sum of fractional balances and remainder, balance is 0ukava but expected 2000000000000akava (2ukava)", + "module account balance does not match sum of fractional balances and remainder, balance is 0ua0gi but expected 2000000000000neuron (2ua0gi)", }, { "invalid - module balance excessive", @@ -105,7 +105,7 @@ func (suite *GenesisTestSuite) TestInitGenesis() { }, sdkmath.NewInt(2), ), - "module account balance does not match sum of fractional balances and remainder, balance is 100ukava but expected 2000000000000akava (2ukava)", + "module account balance does not match sum of fractional balances and remainder, balance is 100ua0gi but expected 2000000000000neuron (2ua0gi)", }, { "sets module account", diff --git a/x/precisebank/testutil/suite.go b/x/precisebank/testutil/suite.go index cd210bd3..70fd35f9 100644 --- a/x/precisebank/testutil/suite.go +++ b/x/precisebank/testutil/suite.go @@ -41,7 +41,7 @@ func (suite *Suite) SetupTest() { suite.Keeper = tApp.GetPrecisebankKeeper() cdc := suite.App.AppCodec() - coins := sdk.NewCoins(sdk.NewInt64Coin("ukava", 1000_000_000_000_000_000)) + coins := sdk.NewCoins(sdk.NewInt64Coin("ua0gi", 1000_000_000_000_000_000)) authGS := app.NewFundedGenStateWithSameCoins(cdc, coins, []sdk.AccAddress{}) gs := app.GenesisState{}