test_use_value_in_tx()
¶
Documentation for tests/shanghai/eip4895_withdrawals/test_withdrawals.py::TestUseValueInTx::test_use_value_in_tx@bc691d13
.
Generate fixtures for these test cases for Prague with:
fill -v tests/shanghai/eip4895_withdrawals/test_withdrawals.py::TestUseValueInTx::test_use_value_in_tx --fork Prague
Test that the value from a withdrawal can be used in a transaction.
-
tx_in_withdrawals_block
: Test that the withdrawal value can not be used by a transaction in the same block as the withdrawal. -
tx_after_withdrawals_block
: Test that the withdrawal value can be used by a transaction in the subsequent block.
Source code in tests/shanghai/eip4895_withdrawals/test_withdrawals.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 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 129 130 131 132 |
|
test_use_value_in_tx(pre, blockchain_test, post, blocks)
¶
Test sending withdrawal value in a transaction.
Source code in tests/shanghai/eip4895_withdrawals/test_withdrawals.py
124 125 126 127 128 129 130 131 132 |
|
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Test ID (Abbreviated) | test_case |
---|---|
...fork_Shanghai-blockchain_test-tx_in_withdrawals_block | tx_in_withdrawals_block |
...fork_Shanghai-blockchain_test-tx_after_withdrawals_block | tx_after_withdrawals_block |
...fork_Cancun-blockchain_test-tx_in_withdrawals_block | tx_in_withdrawals_block |
...fork_Cancun-blockchain_test-tx_after_withdrawals_block | tx_after_withdrawals_block |
...fork_Prague-blockchain_test-tx_in_withdrawals_block | tx_in_withdrawals_block |
...fork_Prague-blockchain_test-tx_after_withdrawals_block | tx_after_withdrawals_block |
...fork_Osaka-blockchain_test-tx_in_withdrawals_block | tx_in_withdrawals_block |
...fork_Osaka-blockchain_test-tx_after_withdrawals_block | tx_after_withdrawals_block |