test_blobbasefee_before_fork()
Documentation for tests/cancun/eip7516_blobgasfee/test_blobgasfee_opcode.py::test_blobbasefee_before_fork@ffe48572.
Generate fixtures for these test cases for Cancun with:
fill -v tests/cancun/eip7516_blobgasfee/test_blobgasfee_opcode.py::test_blobbasefee_before_fork --fork Cancun
Tests that the BLOBBASEFEE opcode results on exception when called before
the fork.
Source code in tests/cancun/eip7516_blobgasfee/test_blobgasfee_opcode.py
| @pytest.mark.parametrize("caller_pre_storage", [{1: 1}], ids=[""])
@pytest.mark.valid_at_transition_to("Cancun")
def test_blobbasefee_before_fork(
state_test: StateTestFiller,
pre: Alloc,
caller_address: Address,
callee_address: Address,
tx: Transaction,
) -> None:
"""
Tests that the BLOBBASEFEE opcode results on exception when called before
the fork.
"""
# Fork happens at timestamp 15_000
timestamp = 7_500
post = {
caller_address: Account(
storage={1: 0},
),
callee_address: Account(
balance=0,
),
}
state_test(
env=Environment(
timestamp=timestamp,
),
pre=pre,
tx=tx,
post=post,
)
|
Parametrized Test Cases
This test generates 1 parametrized test case across 1 fork.