test_blobhash_invalid_blob_index()
¶
Documentation for tests/cancun/eip4844_blobs/test_blobhash_opcode.py::test_blobhash_invalid_blob_index@0f7c73a7
.
Generate fixtures for these test cases for Prague with:
fill -v tests/cancun/eip4844_blobs/test_blobhash_opcode.py::test_blobhash_invalid_blob_index --fork Prague
Tests that the BLOBHASH
opcode returns a zeroed bytes32
value for invalid
indexes.
Includes cases where the index is negative (index < 0
) or
exceeds the maximum number of blob_versioned_hash
values stored:
(index >= len(tx.message.blob_versioned_hashes)
).
It confirms that the returned value is a zeroed bytes32
for each case.
Source code in tests/cancun/eip4844_blobs/test_blobhash_opcode.py
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 |
|
Parametrized Test Cases¶
This test case is only parametrized by fork.
Test ID (Abbreviated) | scenario |
---|---|
...fork_Cancun-blockchain_test-scenario_invalid_calls | invalid_calls |
...fork_Prague-blockchain_test-scenario_invalid_calls | invalid_calls |
...fork_Osaka-blockchain_test-scenario_invalid_calls | invalid_calls |