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

Port RETURNDATALOAD from EIP-7069 PR #36

Merged
merged 1 commit into from
Jan 4, 2024
Merged

Port RETURNDATALOAD from EIP-7069 PR #36

merged 1 commit into from
Jan 4, 2024

Conversation

pdobacz
Copy link
Member

@pdobacz pdobacz commented Dec 27, 2023

One of last pending discussion items. The changes are ported directly from https://github.com/ethereum/EIPs/pull/7820/files, only with an update to the language to match the mega spec.

As I understand, this proposition should accompany the revamping of *CALL instructions, otherwise there might be code regressions (from Vyper team).

There has been discussion on changing the RETURNDATA* semantics to pad with zero instead of halting on OOB, but this PR follows the EIP PR in keeping the (halt exceptionally) behavior. Unless there is a compelling reason to change to zero pad, I would keep it like that to not bloat the EOF change.

@gumb0
Copy link
Contributor

gumb0 commented Jan 4, 2024

We should merge it like this for now, change later if needed.

@pdobacz pdobacz marked this pull request as ready for review January 4, 2024 12:20
@pdobacz pdobacz merged commit bcec2a4 into main Jan 4, 2024
2 checks passed
@pdobacz pdobacz deleted the returndataload branch January 4, 2024 12:24
@pdobacz
Copy link
Member Author

pdobacz commented Jan 4, 2024

OK. Also ticked off on the open questions list.

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