ethereum / ethereum/execution-specs

Create test for same block system contract deployment

Open
#2,270 2 comments 1 reaction 1 assignee Claimed by @gurukamath View on GitHub
stale
Dominant language
Python
Stars
1.2k
Forks
505
Avg merge
2d 14h
Merged PRs (30d)
116

Description

Actually, I was looking into this in a bit more detail and it looks like both EIP-7002 and EIP-7251 mention this case. See [here](https://github.com/ethereum/EIPs/blob/2175b810f3fd7aa07f356e5e9799985ad47d04a5/EIPS/eip-7002.md?plain=1#L727) for example.

It looks like if the deployment happens in the same block, the system contract needs to be read. So we need to read the state from the tracker and not the pre state. We definitely need a test for this though. Will create one.

_Originally posted by @gurukamath in https://github.com/ethereum/execution-specs/pull/2264#discussion_r2836460207_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.