test_gas()
¶
Documentation for tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp2_to_g2.py::test_gas@bc691d13
.
Generate fixtures for these test cases for Prague with:
fill -v tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp2_to_g2.py::test_gas --fork Prague
Test the BLS12_MAP_FP_TO_G2 precompile gas requirements.
Source code in tests/prague/eip2537_bls_12_381_precompiles/test_bls12_map_fp2_to_g2.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
|
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Test ID (Abbreviated) | input_data | expected_output | precompile_gas_modifier | precompile_address |
---|---|---|---|---|
...fork_Prague-state_test-extra_gas- | FP2(x=(0, 0)) | PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) | 1 | 17 |
...fork_Prague-state_test-insufficient_gas- | FP2(x=(0, 0)) | -1 | 17 | |
...fork_Prague-blockchain_test_from_state_test-extra_gas- | FP2(x=(0, 0)) | PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) | 1 | 17 |
...fork_Prague-blockchain_test_from_state_test-insufficient_gas- | FP2(x=(0, 0)) | -1 | 17 | |
...fork_Osaka-state_test-extra_gas- | FP2(x=(0, 0)) | PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) | 1 | 17 |
...fork_Osaka-state_test-insufficient_gas- | FP2(x=(0, 0)) | -1 | 17 | |
...fork_Osaka-blockchain_test_from_state_test-extra_gas- | FP2(x=(0, 0)) | PointG2(x=(232751224930677745396095561951152042576424604713130436843934548678666406429167866909490329228404544352148194115534, 1601558386896345240320690342453673501793035385728549575803514192020355846653238172333813953555511850549100476205202), y=(366072527324011932385571544496195798415567032250142018360048479110276041591259208603171511238009482094790662379841, 735055000775559535481906131992536480072884649650286758007297964611137923289749918348543505818551800823925955026780)) | 1 | 17 |
...fork_Osaka-blockchain_test_from_state_test-insufficient_gas- | FP2(x=(0, 0)) | -1 | 17 |