Skip to content

Commit

Permalink
Update src/ethereum/prague/fork.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tanishq Jasoria <[email protected]>
  • Loading branch information
nerolation and tanishqjasoria authored Oct 2, 2024
1 parent 0daa7a8 commit 2eb953f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ethereum/prague/fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 2eb953f

Please sign in to comment.