test_extcodehash_created_and_deleted_recheck_outer()¶
Documentation for tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_created_and_deleted_recheck_outer@b47f0253.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_created_and_deleted_recheck_outer --fork Amsterdam
Test EXTCODEHASH of a created-and-selfdestructed account rechecked from an outer call frame.
Outer contract CALLs inner, which CREATE2s a contract with SELFDESTRUCT code then triggers it. After inner returns, outer re-checks EXTCODEHASH and EXTCODESIZE of the created address. Within the transaction all checks return the original code hash and size. The created contract is deleted at end of transaction.
Source code in tests/constantinople/eip1052_extcodehash/test_extcodehash.py
1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 10 forks.