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

Commit 7995ccd

Browse files
Ray Greenaraskachoi
andauthored
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>
1 parent 4a1c3e0 commit 7995ccd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/ante/eth.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ func NewEthSetupContextDecorator() EthSetupContextDecorator {
3939
// This is undone at the EthGasConsumeDecorator, where the context is set with the
4040
// ethereum tx GasLimit.
4141
func (escd EthSetupContextDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
42-
ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter())
43-
4442
// all transactions must implement GasTx
4543
gasTx, ok := tx.(authante.GasTx)
4644
if !ok {

0 commit comments

Comments
 (0)