Skip to content

Test Modexp Thresholds

Documentation for tests/osaka/eip7883_modexp_gas_increase/[email protected].

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds.py --fork Osaka

EIP-7883 ModExp gas cost increase tests.

Tests for ModExp gas cost increase in EIP-7883: ModExp Gas Cost Increase.

Test Functions Overview

Name Type Cases (Osaka) Description
test_vectors_from_eip state_test 46 Test ModExp gas cost using the test vectors from EIP-7883.
test_vectors_from_legacy_tests state_test 32 Test ModExp gas cost using the test vectors from legacy tests.
test_modexp_invalid_inputs state_test 3 Test ModExp gas cost with invalid inputs.
test_modexp_boundary_inputs state_test 4 Test ModExp boundary inputs.
test_modexp_call_operations state_test 4 Test ModExp call related operations with EIP-7883.
test_modexp_gas_usage_contract_wrapper state_test 4 Test ModExp gas cost with different gas modifiers using contract wrapper
test_modexp_used_in_transaction_entry_points state_test 4 Test ModExp using in transaction entry points with different precompile gas
test_contract_creation_transaction state_test 1 Test the contract creation for the ModExp precompile.
test_contract_initcode state_test 2 Test ModExp behavior from contract creation.
test_modexp_variable_gas_cost state_test 54 Test ModExp variable gas cost.
test_modexp_variable_gas_cost_exceed_tx_gas_cap state_test 1 Test ModExp variable gas cost. Inputs with an expected gas cost over the