diff --git a/core/state_transition.go b/core/state_transition.go index 877ed0638f..662257f951 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -242,12 +242,10 @@ func FloorDataGas(rules params.Rules, from common.Address, to *common.Address, v tokenCost = params.TxCostFloorPerToken } - // The floor is anchored to the transaction base cost. Under EIP-2780 that - // base is the per-resource decomposition (the same one used by the intrinsic - // gas), so the floor never undercuts the transaction's own base. + // The floor is anchored to the transaction base cost. floorBase := params.TxGas if rules.IsAmsterdam { - floorBase = intrinsicBaseGasEIP2780(from, to, value) + floorBase = params.TxBaseCost2780 } // Check for overflow if (math.MaxUint64-floorBase)/tokenCost < tokens {