Skip to content

Commit 660bb22

Browse files
committed
fix(tests): Broken test due to type-4 tx
1 parent 9e2f0e4 commit 660bb22

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/cancun/eip4788_beacon_root/conftest.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Account,
1212
Address,
1313
Alloc,
14+
AuthorizationTuple,
1415
Bytecode,
1516
Environment,
1617
Hash,
@@ -236,7 +237,17 @@ def tx(
236237
kwargs["max_fee_per_blob_gas"] = fork.min_base_fee_per_blob_gas()
237238
kwargs["blob_versioned_hashes"] = add_kzg_version([0], BLOB_COMMITMENT_VERSION_KZG)
238239

239-
if tx_type > 3:
240+
if tx_type == 4:
241+
signer = pre.fund_eoa(amount=0)
242+
kwargs["authorization_list"] = [
243+
AuthorizationTuple(
244+
signer=signer,
245+
address=Address(0),
246+
nonce=0,
247+
)
248+
]
249+
250+
if tx_type > 4:
240251
raise Exception(f"Unexpected transaction type: '{tx_type}'. Test requires update.")
241252

242253
return Transaction(**kwargs)

0 commit comments

Comments
 (0)