Skip to content

Commit

Permalink
Update EVMFeeCheckDecorator to run in Deliver Mode (#1474)
Browse files Browse the repository at this point in the history
Update Ante
  • Loading branch information
Kbhat1 authored and udpatil committed Apr 17, 2024
1 parent 610e525 commit 894ba57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions x/evm/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ func NewEVMFeeCheckDecorator(evmKeeper *evmkeeper.Keeper) *EVMFeeCheckDecorator
}

func (fc EVMFeeCheckDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
// only check fee in CheckTx (similar to normal Sei tx)
if !ctx.IsCheckTx() || simulate {
if simulate {
return next(ctx, tx, simulate)
}

Expand Down
1 change: 0 additions & 1 deletion x/evm/ante/fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (

func TestEVMFeeCheckDecoratorCancun(t *testing.T) {
k, ctx := testkeeper.MockEVMKeeper()
ctx = ctx.WithIsCheckTx(true)
handler := ante.NewEVMFeeCheckDecorator(k)
privKey := testkeeper.MockPrivateKey()
testPrivHex := hex.EncodeToString(privKey.Bytes())
Expand Down

0 comments on commit 894ba57

Please sign in to comment.