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

fix: make MemorySegmentManager.finalize() public #1771

Merged

Conversation

odesenfans
Copy link
Contributor

Context: this method is used in some of the bootloader hints, see here.

We are currently taking out the bootloader hints out of our fork of cairo-vm so we need this method to be public. This is among the last changes required to get this done and use upstream cairo-vm (probably one more change related to the initial value of exec_scopes but that's it).

Alternative solutions:

  1. Implement this hint in cairo-vm directly: this hint comes with quite a lot of code that is specific to the bootloader. I think it's simpler to make finalize() public, maybe with a disclaimer explaining why it's public to avoid mistakes.

Checklist

  • Linked to Github Issue
  • Unit tests added
  • Integration tests added.
  • This change requires new documentation.
    • Documentation has been added/updated.
    • CHANGELOG has been updated.

This method is used in some of the bootloader hints.
@odesenfans odesenfans changed the title fix: make MemorySegmentsManager.finalize() public fix: make MemorySegmentManager.finalize() public May 23, 2024
@juanbono juanbono added this pull request to the merge queue May 23, 2024
Merged via the queue into lambdaclass:main with commit a30e5c8 May 23, 2024
67 of 70 checks passed
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.

3 participants