EIP-3540: Test EOF initcode cannot create legacy contracts#1112
EIP-3540: Test EOF initcode cannot create legacy contracts#1112hugo-dc wants to merge 1 commit intoethereum:developfrom
Conversation
|
Need to move this to new folder |
|
|
dca8ae7 to
6708a9a
Compare
|
Rebased develop, tests were moved to the correct directory. |
|
EOF1_Execution and EOF1_Calls filled tests changed, but I don't see a change in fillers, why is that? |
Maybe it was in those missing fillers, but I think we're missing here to check that inside EOF contract CREATE/CREATE2 with legacy initcode results in a failure. |
@winsvega this could have been detected by CI (test files updated without update in fillers) |
|
Its vice versa. We check the filler hash. If filler is changed test must be updated. We trust that no commit happens like that |
|
You could addionally check that if test was updated, filler hash was changed. |
This is interesting: The filler didn't change at all! The JSON file is changed because, I'm using a different solc version or a not optimized one. For example: In my solc version, the Yul code |
|
I see, I will delete the refilled files without fillers then. |
I guess my suggestion isn't really straightforward - because someone might want to refill the tests without changing the fillers, e.g. with new implementation or new comilers. |
6708a9a to
e03405f
Compare
e03405f to
a21bce4
Compare
Actually these cases exist in We should try next with new geth implementation (and probably move these cases to |
|
Closing in favor of: #1127 |
EOF initcode (in tx data, or CREATE/CREATE2 initcode) creating Legacy contracts are now expected to be invalid, previous tests were moved to the corresponding test file testing invalid EOF code/initcode.
Tests were filled using this geth version: https://github.com/ipsilon/go-ethereum/tree/eip-3670