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

Minor wording fixes in EOFCREATE spec #96

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Minor wording fixes in EOFCREATE spec #96

merged 1 commit into from
Apr 25, 2024

Conversation

gumb0
Copy link
Contributor

@gumb0 gumb0 commented Apr 24, 2024

Addressing some feedback for similar spec in ethereum/EIPs#8498

@@ -228,9 +228,10 @@ The following instructions are introduced in EOF code:
- an unsuccesful execution of initcode results in pushing `0` onto the stack
- can populate returndata if execution `REVERT`ed
- a successful execution ends with initcode executing `RETURNCONTRACT{deploy_container_index}(aux_data_offset, aux_data_size)` instruction (see below). After that:
- load deploy EOF subcontainer at `deploy_container_index` in the container from which `RETURNCONTRACT` is executed
- load deploy-contract from EOF subcontainer at `deploy_container_index` in the container from which `RETURNCONTRACT` is executed
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"load deploy" doesn't read well

- concatenate data section with `(aux_data_offset, aux_data_offset + aux_data_size)` memory segment and update data size in the header
- if updated deploy container size exceeds `MAX_CODE_SIZE` instruction exceptionally aborts
- let `deployed_code_size` be updated deploy container size
Copy link
Contributor Author

Choose a reason for hiding this comment

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

deployed_code_size was used in the final step without being defined

@gumb0 gumb0 requested a review from pdobacz April 24, 2024 14:16
@gumb0 gumb0 merged commit 40c4645 into main Apr 25, 2024
2 checks passed
@gumb0 gumb0 deleted the fix-eofcreate-wording branch April 25, 2024 09:52
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

Successfully merging this pull request may close these issues.

2 participants