From 38c17a305238f4c003594a09f4f87f9d046329fd Mon Sep 17 00:00:00 2001 From: Solovyov1796 Date: Sat, 3 Aug 2024 22:13:03 +0800 Subject: [PATCH] fix --- app/ante/vesting_test.go | 2 -- x/evmutil/keeper/bank_keeper_test.go | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/ante/vesting_test.go b/app/ante/vesting_test.go index 6297de62..fc2d1bed 100644 --- a/app/ante/vesting_test.go +++ b/app/ante/vesting_test.go @@ -5,8 +5,6 @@ import ( "testing" "time" - "github.com/0glabs/0g-chain/chaincfg" - "github.com/stretchr/testify/require" "github.com/cosmos/cosmos-sdk/testutil/sims" diff --git a/x/evmutil/keeper/bank_keeper_test.go b/x/evmutil/keeper/bank_keeper_test.go index 3e485779..d41f0fba 100644 --- a/x/evmutil/keeper/bank_keeper_test.go +++ b/x/evmutil/keeper/bank_keeper_test.go @@ -678,7 +678,7 @@ func (suite *evmBankKeeperTestSuite) TestConvertOneA0giToNeuronIfNeeded() { suite.SetupTest() suite.FundAccountWithZgChain(suite.Addrs[0], tt.startingCoins) - err := suite.EvmBankKeeper.ConvertOneA0giToNeuronIfNeeded(suite.Ctx, suite.Addrs[0], neuronNeeded) + err := suite.EvmBankKeeper.ConvertOneUa0giToNeuronIfNeeded(suite.Ctx, suite.Addrs[0], neuronNeeded) moduleZgChain := suite.BankKeeper.GetBalance(suite.Ctx, suite.AccountKeeper.GetModuleAddress(types.ModuleName), chaincfg.DisplayDenom) if tt.success { suite.Require().NoError(err) @@ -726,7 +726,7 @@ func (suite *evmBankKeeperTestSuite) TestConvertNeuronToA0gi() { err := suite.App.FundModuleAccount(suite.Ctx, types.ModuleName, sdk.NewCoins(sdk.NewInt64Coin(chaincfg.DisplayDenom, 10))) suite.Require().NoError(err) suite.FundAccountWithZgChain(suite.Addrs[0], tt.startingCoins) - err = suite.EvmBankKeeper.ConvertNeuronToA0gi(suite.Ctx, suite.Addrs[0]) + err = suite.EvmBankKeeper.ConvertNeuronToUa0gi(suite.Ctx, suite.Addrs[0]) suite.Require().NoError(err) neuron := suite.Keeper.GetBalance(suite.Ctx, suite.Addrs[0]) suite.Require().Equal(tt.expectedCoins.AmountOf(chaincfg.BaseDenom), neuron)