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

EOF Validation stricter on returncontract codes #1618

Closed
rakita opened this issue Jul 15, 2024 · 1 comment
Closed

EOF Validation stricter on returncontract codes #1618

rakita opened this issue Jul 15, 2024 · 1 comment
Labels
feature New feature or lib ability hf-prague Prague related EIPs

Comments

@rakita
Copy link
Member

rakita commented Jul 15, 2024

Validation needs to be stricter on RETURNCONTRACT code sections. These are new rules that were added.

We need to implement two additional validations:

  • RETURNCONTRACT the subcontainer pointed to deploy_container_index must not contain a RETURNCONTRACT instruction.
  • it is an error for a container to contain both RETURNCONTRACT and either of RETURN or STOP.
  • it is an error for a subcontainer to never be referenced in its parent container
  • it is an error for a given subcontainer to be referenced by both RETURNCONTRACT and EOFCREATE

PRs:
ipsilon/eof#135
ipsilon/eof#136

@rakita rakita added feature New feature or lib ability hf-prague Prague related EIPs labels Jul 15, 2024
@rakita rakita changed the title EOF Validation stricker on returncontract codes EOF Validation stricter on returncontract codes Jul 18, 2024
@rakita
Copy link
Member Author

rakita commented Jul 29, 2024

done in #1648

@rakita rakita closed this as completed Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or lib ability hf-prague Prague related EIPs
Projects
None yet
Development

No branches or pull requests

1 participant