Commit 2badd70
EVM: EIP-1153: preserve transient storage in replaceCode
The `replaceCode` function now preserves the `tStorage` field when
converting from `InitCode` to `RuntimeCode`. Per EIP-1153, transient
storage set during constructor execution should be accessible
in the deployed contract.
This fixes 4 failing `eip1153_tstore` tests:
https://github.com/ethereum/execution-specs/blob/2c549ce0b655dab328e917ed251acbae5a655cbb/tests/cancun/eip1153_tstore/test_tstorage_create_contexts.py#L72-L1261 parent 511488a commit 2badd70
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2347 | 2347 | | |
2348 | 2348 | | |
2349 | 2349 | | |
| 2350 | + | |
2350 | 2351 | | |
2351 | 2352 | | |
2352 | 2353 | | |
| |||
0 commit comments