From 2eb953f099d9b696012eb9670017044b63a27a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Wahrst=C3=A4tter?= <51536394+nerolation@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:49:16 +0200 Subject: [PATCH] Update src/ethereum/prague/fork.py Co-authored-by: Tanishq Jasoria --- src/ethereum/prague/fork.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ethereum/prague/fork.py b/src/ethereum/prague/fork.py index e8070e25dc..6225f5ce03 100644 --- a/src/ethereum/prague/fork.py +++ b/src/ethereum/prague/fork.py @@ -847,11 +847,11 @@ def process_transaction( intrinsic_gas, tokens_in_calldata = calculate_intrinsic_cost(tx) - if intrinsic_gas > tx.gas: + floor = Uint(tokens_in_calldata * FLOOR_CALLDATA_COST + TX_BASE_COST) + if floor > tx.gas: raise InvalidBlock - delta_eip7623 = tokens_in_calldata * (FLOOR_CALLDATA_COST - STANDARD_CALLDATA_TOKEN_COST) - gas = tx.gas - intrinsic_gas + delta_eip7623 + gas = tx.gas - intrinsic_gas increment_nonce(env.state, sender) sender_balance_after_gas_fee = (