Skip to content

Test Gas

Documentation for tests/byzantium/eip197_ec_pairing/test_gas.py@8db70f93.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/byzantium/eip197_ec_pairing/test_gas.py --fork Amsterdam

Tests ecpairing precompiled contract gas pricing.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_gas_costs state_test 2 Test the base gas cost of the ecpairing precompile with zero pairs.
test_invalid_gas_consumption state_test 2 Test that invalid input to ecpairing consumes all forwarded gas.