Skip to content

Commit fc90a1c

Browse files
committed
feat(forks): Add authorization refund to gas costs list
1 parent 5f44e05 commit fc90a1c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/ethereum_test_forks/forks/forks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def gas_costs(cls, block_number: int = 0, timestamp: int = 0) -> GasCosts:
123123
G_KECCAK_256_WORD=6,
124124
G_COPY=3,
125125
G_BLOCKHASH=20,
126-
G_AUTHORIZATION=25_000,
126+
G_AUTHORIZATION=0,
127+
R_AUTHORIZATION_EXISTING_AUTHORITY=0,
127128
)
128129

129130
@classmethod
@@ -1052,6 +1053,8 @@ def gas_costs(cls, block_number: int = 0, timestamp: int = 0) -> GasCosts:
10521053
super(Prague, cls).gas_costs(block_number, timestamp),
10531054
G_TX_DATA_STANDARD_TOKEN_COST=4, # https://eips.ethereum.org/EIPS/eip-7623
10541055
G_TX_DATA_FLOOR_TOKEN_COST=10,
1056+
G_AUTHORIZATION=25_000,
1057+
R_AUTHORIZATION_EXISTING_AUTHORITY=12_500,
10551058
)
10561059

10571060
@classmethod

src/ethereum_test_forks/gas_costs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ class GasCosts:
5858
G_BLOCKHASH: int
5959

6060
G_AUTHORIZATION: int
61+
62+
R_AUTHORIZATION_EXISTING_AUTHORITY: int

0 commit comments

Comments
 (0)