Skip to content

Update EIP-3540: Restrict EOF version in create#6052

Merged
eth-bot merged 1 commit intoethereum:masterfrom
ipsilon:eip-3540_create_restrictions
Dec 1, 2022
Merged

Update EIP-3540: Restrict EOF version in create#6052
eth-bot merged 1 commit intoethereum:masterfrom
ipsilon:eip-3540_create_restrictions

Conversation

@chfast
Copy link
Copy Markdown
Member

@chfast chfast commented Nov 28, 2022

Forbid EOF → legacy contract creation.

@github-actions github-actions Bot added c-update Modifies an existing proposal s-review This EIP is in Review t-core labels Nov 28, 2022
@eth-bot
Copy link
Copy Markdown
Collaborator

eth-bot commented Nov 28, 2022

All tests passed; auto-merging...

(pass) eip-3540.md

classification
updateEIP
  • passed!

Comment thread EIPS/eip-3540.md Outdated
2. If *code's container* has EOF1 prefix it must be valid EOF1 code.
1. If *initcode's container* has EOF1 prefix it MUST be valid EOF1 code.
2. If *code's container* has EOF1 prefix it MUST be valid EOF1 code.
3. If *initcode's container* is valid EOF1 code the result *code's container* MUST be valid EOF1 code (i.e. EOF1 initcode MUST NOT produce legacy code).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or empty?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Maybe something like "returning empty code is still allowed")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does returning empty do?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it creates account with empty code.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since empty isn't valid EOF code, I think we should disallow.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just put a note that empty code is invalid? cc @gumb0

Comment thread EIPS/eip-3540.md Outdated
Comment thread EIPS/eip-3540.md Outdated
lightclient
lightclient previously approved these changes Nov 30, 2022
Comment thread EIPS/eip-3540.md Outdated
axic
axic previously approved these changes Dec 1, 2022
@chfast chfast force-pushed the eip-3540_create_restrictions branch from 208a943 to 499a3c2 Compare December 1, 2022 17:27
@chfast chfast marked this pull request as ready for review December 1, 2022 17:27
@chfast chfast requested a review from eth-bot as a code owner December 1, 2022 17:27
@eth-bot eth-bot enabled auto-merge (squash) December 1, 2022 17:28
@eth-bot eth-bot merged commit 6e25ec4 into ethereum:master Dec 1, 2022
@axic axic deleted the eip-3540_create_restrictions branch December 1, 2022 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-update Modifies an existing proposal s-review This EIP is in Review t-core

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants