test_warm_coinbase_call_out_of_gas()¶
Documentation for tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py::test_warm_coinbase_call_out_of_gas@verkle@v0.0.6.
Generate fixtures for these test cases for Shanghai with:
Shanghai only:
fill -v tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py::test_warm_coinbase_call_out_of_gas --fork=Shanghai --evm-bin=/path/to/evm-tool-dev-version
For all forks up to and including Shanghai:
fill -v tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py::test_warm_coinbase_call_out_of_gas --until=Shanghai
Test that the coinbase is warm by accessing the COINBASE with each of the following opcodes:
- CALL
- CALLCODE
- DELEGATECALL
- STATICCALL
Source code in tests/shanghai/eip3651_warm_coinbase/test_warm_coinbase.py
34 35 36 37 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 133 134 135 | |
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Skipped Parameters
For more concise readability, the table below does not list the following parameter values:
fork, blockchain_test, state_test, state_test_only, eof_test, eof_state_test.
| Test ID | opcode | contract_under_test_code | call_gas_exact | use_sufficient_gas |
|---|---|---|---|---|
| CALL-sufficient_gas | call | 122 | True | |
| CALL-insufficient_gas | call | 122 | False | |
| CALLCODE-sufficient_gas | callcode | 122 | True | |
| CALLCODE-insufficient_gas | callcode | 122 | False | |
| DELEGATECALL-sufficient_gas | delegatecall | 119 | True | |
| DELEGATECALL-insufficient_gas | delegatecall | 119 | False | |
| STATICCALL-sufficient_gas | staticcall | 119 | True | |
| STATICCALL-insufficient_gas | staticcall | 119 | False | |
| CALL-sufficient_gas | call | 122 | True | |
| CALL-insufficient_gas | call | 122 | False | |
| CALLCODE-sufficient_gas | callcode | 122 | True | |
| CALLCODE-insufficient_gas | callcode | 122 | False | |
| DELEGATECALL-sufficient_gas | delegatecall | 119 | True | |
| DELEGATECALL-insufficient_gas | delegatecall | 119 | False | |
| STATICCALL-sufficient_gas | staticcall | 119 | True | |
| STATICCALL-insufficient_gas | staticcall | 119 | False |