Skip to content

Commit dfa792d

Browse files
authored
Merge pull request #1057 from danceratopz/eip-7702-chain_id-u256
prague: update `chain_id` in 7702 set code txs to u256
2 parents b0005fb + febb397 commit dfa792d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ethereum/prague/fork_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Authorization:
7777
The authorization for a set code transaction.
7878
"""
7979

80-
chain_id: U64
80+
chain_id: U256
8181
address: Address
8282
nonce: U64
8383
y_parity: U8

src/ethereum/prague/vm/eoa_delegation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def set_delegation(message: Message, env: Environment) -> U256:
163163
"""
164164
refund_counter = U256(0)
165165
for auth in message.authorizations:
166-
if auth.chain_id not in (env.chain_id, U64(0)):
166+
if auth.chain_id not in (env.chain_id, U256(0)):
167167
continue
168168

169169
if auth.nonce >= U64.MAX_VALUE:

src/ethereum_spec_tools/evm_tools/loaders/transaction_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def json_to_authorizations(self) -> Any:
9292
for sublist in self.raw["authorizationList"]:
9393
authorizations.append(
9494
self.fork.Authorization(
95-
chain_id=hex_to_u64(sublist.get("chainId")),
95+
chain_id=hex_to_u256(sublist.get("chainId")),
9696
nonce=hex_to_u64(sublist.get("nonce")),
9797
address=self.fork.hex_to_address(sublist.get("address")),
9898
y_parity=hex_to_u8(sublist.get("v")),

0 commit comments

Comments
 (0)