From 049856b01ee2fb4932667eb1b27d3d68b01702fe Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 5 Jan 2026 14:29:48 +0900 Subject: [PATCH] remove unecessary extra gas check --- core/vm/operations_acl.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/vm/operations_acl.go b/core/vm/operations_acl.go index b69895596b..7764656e45 100644 --- a/core/vm/operations_acl.go +++ b/core/vm/operations_acl.go @@ -274,18 +274,6 @@ func makeCallVariantGasCallEIP7702(oldCalculatorStateful, oldCalculatorStateless return oldStateful, err } - // this should cause BAL test failures if uncommented but it doesn't. - // It's currently an unspecified edge-case of BAL where it's not clear - // whether we should perform the state read of the delegated account - // if it can be known that we wouldn't have enough gas to cover only - // that portion of the call cost. - baseCost, overflow := math.SafeAdd(eip150BaseGas, oldStateful) - if overflow { - return 0, ErrGasUintOverflow - } else if contract.Gas < baseCost { - return 0, ErrOutOfGas - } - if eip150BaseGas, overflow = math.SafeAdd(eip150BaseGas, oldStateful); overflow { return 0, ErrOutOfGas }