Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 5d9734a

Browse files
committed
add Ante unit test
1 parent 1fbd492 commit 5d9734a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/ante/eth_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
sdk "github.com/cosmos/cosmos-sdk/types"
88

9+
storetypes "github.com/cosmos/cosmos-sdk/store/types"
910
"github.com/evmos/ethermint/app/ante"
1011
"github.com/evmos/ethermint/server/config"
1112
"github.com/evmos/ethermint/tests"
@@ -541,10 +542,12 @@ func (suite AnteTestSuite) TestEthSetupContextDecorator() {
541542

542543
for _, tc := range testCases {
543544
suite.Run(tc.name, func() {
544-
_, err := dec.AnteHandle(suite.ctx, tc.tx, false, NextFn)
545+
ctx, err := dec.AnteHandle(suite.ctx, tc.tx, false, NextFn)
545546

546547
if tc.expPass {
547548
suite.Require().NoError(err)
549+
suite.Equal(storetypes.GasConfig{}, ctx.KVGasConfig())
550+
suite.Equal(storetypes.GasConfig{}, ctx.TransientKVGasConfig())
548551
} else {
549552
suite.Require().Error(err)
550553
}

0 commit comments

Comments
 (0)