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>
This commit is contained in:
Ray Green
2021-02-08 11:10:44 -08:00
committed by GitHub
co-authored by Daniel Choi
parent 4a1c3e02c9
commit 7995ccd609
-2
View File
@@ -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 {