Skip to content

Test Erc20

Documentation for tests/benchmark/stateful/bloatnet/test_erc20.py@5fa5938b.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/benchmark/stateful/bloatnet/test_erc20.py --gas-benchmark-values 1

Benchmark storage operations through ERC20 calls.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_mixed_sload_sstore benchmark_test 5 Benchmark mixed SLOAD/SSTORE ratios on ERC20 contracts.
test_sload_erc20_generic benchmark_test 1 Benchmark SLOAD using ERC20 balanceOf.
test_sstore_erc20_generic benchmark_test 1 Benchmark SSTORE using ERC20 approve.