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 87f968c commit 3c3edbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ethereum/prague/fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ def calculate_intrinsic_cost(tx: Transaction) -> Tuple[Uint, Uint]:

tokens_in_calldata = zerobytes + (len(tx.data) - zerobytes) * 4

data_cost = tokens_in_calldata * FLOOR_CALLDATA_COST
data_cost = tokens_in_calldata * STANDARD_CALLDATA_TOKEN_COST

if tx.to == Bytes0(b""):
create_cost = TX_CREATE_COST + int(init_code_cost(Uint(len(tx.data))))
Expand Down

0 comments on commit 3c3edbe

Please sign in to comment.