Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Aug 16, 2024
1 parent 48849fe commit 8f89bb1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/ante/eth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ func (suite *AnteTestSuite) TestNewEthAccountVerificationDecorator() {
suite.Require().NoError(vmdb.Commit())

accountGetter := ante.NewCachedAccountGetter(suite.ctx, suite.app.AccountKeeper)
err := ante.VerifyEthAccount(suite.ctx.WithIsCheckTx(tc.checkTx), tc.tx, suite.app.EvmKeeper, evmtypes.DefaultEVMDenom, accountGetter)
balanceGetter := ante.NewCachedBalanceGetter(suite.ctx, suite.app.EvmKeeper)
err := ante.VerifyEthAccount(suite.ctx.WithIsCheckTx(tc.checkTx), tc.tx, evmtypes.DefaultEVMDenom, accountGetter, balanceGetter)

if tc.expPass {
suite.Require().NoError(err)
Expand Down Expand Up @@ -460,9 +461,9 @@ func (suite *AnteTestSuite) TestCanTransferDecorator() {
tc.malleate()
suite.Require().NoError(vmdb.Commit())

balanceGetter := ante.NewCachedBalanceGetter(suite.ctx, suite.app.EvmKeeper)
err := ante.CheckEthCanTransfer(
suite.ctx.WithIsCheckTx(true), tc.tx,
baseFee, rules, suite.app.EvmKeeper, &evmParams,
tc.tx, baseFee, rules, &evmParams, balanceGetter,
)

if tc.expPass {
Expand Down

0 comments on commit 8f89bb1

Please sign in to comment.