Skip to content

Test Withdrawals

Documentation for tests/shanghai/eip4895_withdrawals/test_withdrawals.py@206854b5.

Generate fixtures for these test cases for Prague with:

fill -v tests/shanghai/eip4895_withdrawals/test_withdrawals.py --fork Prague

Test Functions Overview

Name Type Cases (Prague) Description
test_use_value_in_tx blockchain_test 2 Test sending withdrawal value in a transaction.
test_use_value_in_contract blockchain_test 1 Test sending value from contract that has not received a withdrawal
test_balance_within_block blockchain_test 1 Test Withdrawal balance increase within the same block,
test_multiple_withdrawals_same_address blockchain_test 2 Test Withdrawals can be done to the same address multiple times in
test_many_withdrawals blockchain_test 1 Test Withdrawals with a count of N withdrawals in a single block where
test_self_destructing_account blockchain_test 1 Test withdrawals can be done to self-destructed accounts.
test_newly_created_contract blockchain_test 2 Test Withdrawing to a newly created contract.
test_no_evm_execution blockchain_test 1 Test Withdrawals don't trigger EVM execution.
test_zero_amount blockchain_test 4 Test withdrawals with zero amount for the following cases, all withdrawals
test_large_amount blockchain_test 1 Test Withdrawals that have a large gwei amount, so that (gwei * 1e9)
test_withdrawing_to_precompiles blockchain_test 38 Test withdrawing to all precompiles for a given fork.