test_self_sponsored_set_code()
¶
Documentation for tests/prague/eip7702_set_code_tx/test_set_code_txs.py::test_self_sponsored_set_code@21fb11c8
.
Generate fixtures for these test cases for Prague with:
fill -v tests/prague/eip7702_set_code_tx/test_set_code_txs.py::test_self_sponsored_set_code --fork Prague
Test the executing a self-sponsored set-code transaction.
The transaction is sent to the sender, and the sender is the signer of the only authorization tuple in the authorization list.
The authorization tuple has a nonce of 1 because the self-sponsored transaction increases the nonce of the sender from zero to one first.
The expected nonce at the end of the transaction is 2.
Source code in tests/prague/eip7702_set_code_tx/test_set_code_txs.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
|
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Test ID (Abbreviated) | suffix | succeeds | tx_value |
---|---|---|---|
...fork_Prague-state_test-stop-tx_value_0 | STOP | True | 0 |
...fork_Prague-state_test-stop-tx_value_1 | STOP | True | 1 |
...fork_Prague-state_test-return-tx_value_0 | True | 0 | |
...fork_Prague-state_test-return-tx_value_1 | True | 1 | |
...fork_Prague-state_test-revert-tx_value_0 | REVERT | False | 0 |
...fork_Prague-state_test-revert-tx_value_1 | REVERT | False | 1 |
...fork_Prague-state_test-invalid-tx_value_0 | INVALID | False | 0 |
...fork_Prague-state_test-invalid-tx_value_1 | INVALID | False | 1 |
...fork_Prague-state_test-out-of-gas-tx_value_0 | OOG | False | 0 |
...fork_Prague-state_test-out-of-gas-tx_value_1 | OOG | False | 1 |
...fork_Prague-blockchain_test_from_state_test-stop-tx_value_0 | STOP | True | 0 |
...fork_Prague-blockchain_test_from_state_test-stop-tx_value_1 | STOP | True | 1 |
...fork_Prague-blockchain_test_from_state_test-return-tx_value_0 | True | 0 | |
...fork_Prague-blockchain_test_from_state_test-return-tx_value_1 | True | 1 | |
...fork_Prague-blockchain_test_from_state_test-revert-tx_value_0 | REVERT | False | 0 |
...fork_Prague-blockchain_test_from_state_test-revert-tx_value_1 | REVERT | False | 1 |
...fork_Prague-blockchain_test_from_state_test-invalid-tx_value_0 | INVALID | False | 0 |
...fork_Prague-blockchain_test_from_state_test-invalid-tx_value_1 | INVALID | False | 1 |
...fork_Prague-blockchain_test_from_state_test-out-of-gas-tx_value_0 | OOG | False | 0 |
...fork_Prague-blockchain_test_from_state_test-out-of-gas-tx_value_1 | OOG | False | 1 |
...fork_Osaka-state_test-stop-tx_value_0 | STOP | True | 0 |
...fork_Osaka-state_test-stop-tx_value_1 | STOP | True | 1 |
...fork_Osaka-state_test-return-tx_value_0 | True | 0 | |
...fork_Osaka-state_test-return-tx_value_1 | True | 1 | |
...fork_Osaka-state_test-revert-tx_value_0 | REVERT | False | 0 |
...fork_Osaka-state_test-revert-tx_value_1 | REVERT | False | 1 |
...fork_Osaka-state_test-invalid-tx_value_0 | INVALID | False | 0 |
...fork_Osaka-state_test-invalid-tx_value_1 | INVALID | False | 1 |
...fork_Osaka-state_test-out-of-gas-tx_value_0 | OOG | False | 0 |
...fork_Osaka-state_test-out-of-gas-tx_value_1 | OOG | False | 1 |
...fork_Osaka-blockchain_test_from_state_test-stop-tx_value_0 | STOP | True | 0 |
...fork_Osaka-blockchain_test_from_state_test-stop-tx_value_1 | STOP | True | 1 |
...fork_Osaka-blockchain_test_from_state_test-return-tx_value_0 | True | 0 | |
...fork_Osaka-blockchain_test_from_state_test-return-tx_value_1 | True | 1 | |
...fork_Osaka-blockchain_test_from_state_test-revert-tx_value_0 | REVERT | False | 0 |
...fork_Osaka-blockchain_test_from_state_test-revert-tx_value_1 | REVERT | False | 1 |
...fork_Osaka-blockchain_test_from_state_test-invalid-tx_value_0 | INVALID | False | 0 |
...fork_Osaka-blockchain_test_from_state_test-invalid-tx_value_1 | INVALID | False | 1 |
...fork_Osaka-blockchain_test_from_state_test-out-of-gas-tx_value_0 | OOG | False | 0 |
...fork_Osaka-blockchain_test_from_state_test-out-of-gas-tx_value_1 | OOG | False | 1 |