File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -272,18 +272,16 @@ func (st *stateTransition) buyGas() error {
272272 mgval .Mul (mgval , st .msg .GasPrice )
273273 var l1Cost * big.Int
274274 var operatorCost * uint256.Int
275- if ! st .msg .SkipNonceChecks && ! st .msg .SkipFromEOACheck {
276- if st .evm .Context .L1CostFunc != nil {
277- l1Cost = st .evm .Context .L1CostFunc (st .msg .RollupCostData , st .evm .Context .Time )
278- if l1Cost != nil {
279- mgval = mgval .Add (mgval , l1Cost )
280- }
281- }
282- if st .evm .Context .OperatorCostFunc != nil {
283- operatorCost = st .evm .Context .OperatorCostFunc (st .msg .GasLimit , st .evm .Context .Time )
284- mgval = mgval .Add (mgval , operatorCost .ToBig ())
275+ if st .evm .Context .L1CostFunc != nil {
276+ l1Cost = st .evm .Context .L1CostFunc (st .msg .RollupCostData , st .evm .Context .Time )
277+ if l1Cost != nil {
278+ mgval = mgval .Add (mgval , l1Cost )
285279 }
286280 }
281+ if st .evm .Context .OperatorCostFunc != nil {
282+ operatorCost = st .evm .Context .OperatorCostFunc (st .msg .GasLimit , st .evm .Context .Time )
283+ mgval = mgval .Add (mgval , operatorCost .ToBig ())
284+ }
287285 balanceCheck := new (big.Int ).Set (mgval )
288286 if st .msg .GasFeeCap != nil {
289287 balanceCheck .SetUint64 (st .msg .GasLimit )
You can’t perform that action at this time.
0 commit comments