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

Feature: add a method to retrieve the output builtin from the VM #1690

Merged

Conversation

odesenfans
Copy link
Contributor

Problem: the output builtin often needs to be manipulated directly in the Starknet bootloader and OS hints.

Solution: add a get_output_builtin() method on the VirtualMachine` struct to retrieve a reference to the output builtin easily.

Description of the pull request changes and motivation.

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.

@odesenfans odesenfans force-pushed the msl/vm-get-output-builtin-runner branch from cff7a5c to a1113d7 Compare March 27, 2024 22:09
vm/src/vm/vm_core.rs Outdated Show resolved Hide resolved
Cargo.lock Outdated Show resolved Hide resolved
vm/src/vm/vm_core.rs Outdated Show resolved Hide resolved
Problem: the output builtin often needs to be manipulated directly in
the Starknet bootloader and OS hints.

Solution: add a `get_output_builtin() method on the `VirtualMachine` struct to
retrieve a reference to the output builtin easily.
@odesenfans odesenfans force-pushed the msl/vm-get-output-builtin-runner branch from 13d5749 to afa0879 Compare April 4, 2024 13:20
Copy link

codecov bot commented Apr 4, 2024

Codecov Report

Attention: Patch coverage is 92.59259% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 96.56%. Comparing base (22a97dc) to head (c051958).

Files Patch % Lines
vm/src/vm/vm_core.rs 92.59% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1690      +/-   ##
==========================================
- Coverage   96.56%   96.56%   -0.01%     
==========================================
  Files          95       95              
  Lines       38380    38407      +27     
==========================================
+ Hits        37062    37088      +26     
- Misses       1318     1319       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fmoletta fmoletta enabled auto-merge April 4, 2024 16:34
@fmoletta fmoletta added this pull request to the merge queue Apr 4, 2024
Merged via the queue into lambdaclass:main with commit ec00e31 Apr 4, 2024
50 of 52 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.

4 participants