Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to create a DEAD contract? #831

Open
hacker-DOM opened this issue Dec 6, 2021 · 2 comments
Open

Is it possible to create a DEAD contract? #831

hacker-DOM opened this issue Dec 6, 2021 · 2 comments

Comments

@hacker-DOM
Copy link
Contributor

hacker-DOM commented Dec 6, 2021

The Yellow Paper contains the following logic under contract creation:

Screenshot 2021-12-06 at 7 38 15 PM

DEAD(s, a) is defined as:

Screenshot 2021-12-06 at 7 39 34 PM

Notably, the nonce must be 0.

In the first figure, a represents the address of the created account. However:

Screenshot 2021-12-06 at 7 41 02 PM

The nonce of the created account is initially set to 1.

TLDR: Am I correct in saying that the second case in Figure 1 cannot occur, and hence is redundant?

@hacker-DOM
Copy link
Contributor Author

The only way to decrease nonce on the EVM is through selfdestruct, and that will happen after \Lambda has finished executing....

@yperbasis
Copy link
Member

Yeah, I think that the second condition in (102) is redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants