From 7995ccd6096e7fe34229a6f4d40258db988e555b Mon Sep 17 00:00:00 2001 From: Ray Green Date: Tue, 9 Feb 2021 03:10:44 +0800 Subject: [PATCH] remove the operation code that makes gas meter into zero (#777) * remove the operation code that makes gas meter into zero * just delete the code Co-authored-by: Daniel Choi <13338103+araskachoi@users.noreply.github.com> --- app/ante/eth.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/ante/eth.go b/app/ante/eth.go index 5df2b524..59005e4f 100644 --- a/app/ante/eth.go +++ b/app/ante/eth.go @@ -39,8 +39,6 @@ func NewEthSetupContextDecorator() EthSetupContextDecorator { // This is undone at the EthGasConsumeDecorator, where the context is set with the // ethereum tx GasLimit. func (escd EthSetupContextDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) { - ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter()) - // all transactions must implement GasTx gasTx, ok := tx.(authante.GasTx) if !ok {