From 22470f96177d444491aae1637851c036b27d45a4 Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Thu, 2 Jul 2026 10:02:51 +0200 Subject: [PATCH] core: fix floor base costs --- core/state_transition.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 {