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-09 03:10:44 +08:00 committed by GitHub
parent 4a1c3e02c9
commit 7995ccd609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {