test_factory_deploys_across_transition()¶
Documentation for tests/amsterdam/eip7997_deterministic_factory_predeploy/test_fork_transition.py::test_factory_deploys_across_transition@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7997_deterministic_factory_predeploy/test_fork_transition.py::test_factory_deploys_across_transition --fork Amsterdam
A pre-existing factory keeps deploying contracts across the Amsterdam transition, with its nonce accruing normally.
Asserting that final nonce is what catches the glamsterdam-devnet-6 bug: a
client that re-injects EIP-7997 at the transition resets the already-used
factory back to nonce 1, diverging the post-state root. Deployment success
alone cannot catch it, since the CREATE2 address does not depend on the
factory nonce.
Source code in tests/amsterdam/eip7997_deterministic_factory_predeploy/test_fork_transition.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | |
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 1 fork.