Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
remove the operation code that makes gas meter into zero (#777)
Browse files Browse the repository at this point in the history
* remove the operation code that makes gas meter into zero

* just delete the code

Co-authored-by: Daniel Choi <[email protected]>
  • Loading branch information
Ray Green and araskachoi authored Feb 8, 2021
1 parent 4a1c3e0 commit 7995ccd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/ante/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7995ccd

Please sign in to comment.