test_invalid_history_contract_calls()
¶
Documentation for tests/prague/eip2935_historical_block_hashes_from_state/test_block_hashes.py::test_invalid_history_contract_calls@fbd9cb20
.
Generate fixtures for these test cases for Prague with:
fill -v tests/prague/eip2935_historical_block_hashes_from_state/test_block_hashes.py::test_invalid_history_contract_calls --fork Prague
Test calling the history contract with invalid block numbers, such as blocks from the future or overflowing block numbers.
Also test the BLOCKHASH opcode with the same block numbers, which should not affect the behavior of the opcode, even after verkle.
Source code in tests/prague/eip2935_historical_block_hashes_from_state/test_block_hashes.py
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 |
|
Parametrized Test Cases¶
The interactive table below is also available as a standalone page.
Test ID (Abbreviated) | block_number | reverts |
---|---|---|
...fork_Prague-blockchain_test-current_block | 1 | True |
...fork_Prague-blockchain_test-future_block | 2 | True |
...fork_Prague-blockchain_test-2**64-1 | 18446744073709551615 | True |
...fork_Prague-blockchain_test-2**64 | 18446744073709551616 | True |
...fork_Osaka-blockchain_test-current_block | 1 | True |
...fork_Osaka-blockchain_test-future_block | 2 | True |
...fork_Osaka-blockchain_test-2**64-1 | 18446744073709551615 | True |
...fork_Osaka-blockchain_test-2**64 | 18446744073709551616 | True |