Skip to content

Commit 740c3e2

Browse files
authored
fix(test): improve EIP-7702 test for type 4 transaction with empty to (#1337)
1 parent 4603463 commit 740c3e2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/prague/eip7702_set_code_tx/test_set_code_txs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2913,11 +2913,16 @@ def test_contract_create(
29132913
pre: Alloc,
29142914
):
29152915
"""Test sending type-4 tx as a create transaction."""
2916+
authorization_tuple = AuthorizationTuple(
2917+
address=Address(0x01),
2918+
nonce=0,
2919+
signer=pre.fund_eoa(),
2920+
)
29162921
tx = Transaction(
29172922
gas_limit=100_000,
29182923
to=None,
29192924
value=0,
2920-
authorization_list=[],
2925+
authorization_list=[authorization_tuple],
29212926
error=TransactionException.TYPE_4_TX_CONTRACT_CREATION,
29222927
sender=pre.fund_eoa(),
29232928
)

0 commit comments

Comments
 (0)