Skip to content

Test Modexp

Documentation for tests/byzantium/eip198_modexp_precompile/test_modexp.py@a86d4327.

Generate fixtures for these test cases for Byzantium with:

Byzantium only:

fill -v tests/byzantium/eip198_modexp_precompile/test_modexp.py --fork=Byzantium --evm-bin=/path/to/evm-tool-dev-version

For all forks up to and including Byzantium:

fill -v tests/byzantium/eip198_modexp_precompile/test_modexp.py --until=Byzantium

Test EIP-198: MODEXP Precompile

Tests the MODEXP precompile, located at address 0x0000..0005. Test cases from the EIP are labelled with EIP-198-caseX in the test id.

Test Functions Overview

Name Type Cases Description
test_modexp state_test 32 Test the MODEXP precompile