File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -628,6 +628,15 @@ async function _runTx(vm: VM, opts: RunTxOpts): Promise<RunTxResult> {
628628 debugGas ( `tx add baseFee ${ intrinsicGas } to totalGasSpent (-> ${ results . totalGasSpent } )` )
629629 }
630630
631+ if ( vm . common . isActivatedEIP ( 7623 ) ) {
632+ if ( results . totalGasSpent < floorCost ) {
633+ results . totalGasSpent = floorCost
634+ if ( vm . DEBUG ) {
635+ debugGas ( `tx apply floorCost ${ floorCost } to totalGasSpent (-> ${ results . totalGasSpent } )` )
636+ }
637+ }
638+ }
639+
631640 // Add blob gas used to result
632641 if ( isBlob4844Tx ( tx ) ) {
633642 results . blobGasUsed = totalblobGas
@@ -650,11 +659,6 @@ async function _runTx(vm: VM, opts: RunTxOpts): Promise<RunTxResult> {
650659 }
651660 }
652661
653- if ( vm . common . isActivatedEIP ( 7623 ) ) {
654- if ( results . totalGasSpent < floorCost ) {
655- results . totalGasSpent = floorCost
656- }
657- }
658662
659663 results . amountSpent = results . totalGasSpent * gasPrice
660664
You can’t perform that action at this time.
0 commit comments