Skip to content

test_eip_6110()

Documentation for tests/prague/eip6110_deposits/test_eip_mainnet.py::test_eip_6110@7b8124a7.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip6110_deposits/test_eip_mainnet.py::test_eip_6110 --fork Prague

Test making a deposit to the beacon chain deposit contract.

Source code in tests/prague/eip6110_deposits/test_eip_mainnet.py
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@pytest.mark.parametrize(
    "requests",
    [
        pytest.param(
            [
                DepositTransaction(
                    # TODO: Use a real public key to allow recovery of
                    #  the funds.
                    requests=[
                        DepositRequest(
                            pubkey=0x01,
                            withdrawal_credentials=0x02,
                            amount=1_000_000_000,
                            signature=0x03,
                            index=0x0,
                        )
                    ],
                ),
            ],
            id="single_deposit_from_eoa_minimum",
        ),
    ],
)
def test_eip_6110(
    blockchain_test: BlockchainTestFiller,
    pre: Alloc,
    blocks: List[Block],
) -> None:
    """Test making a deposit to the beacon chain deposit contract."""
    blockchain_test(
        pre=pre,
        post={},
        blocks=blocks,
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 1 fork.