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

Cairo1 runner fixes #675

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Cairo1 runner fixes #675

wants to merge 10 commits into from

Conversation

MaksymMalicki
Copy link
Contributor

No description provided.

@MaksymMalicki MaksymMalicki changed the title Fixes for the generation of entry code, fixes of hints parsing Entry code generation fix Nov 21, 2024
@MaksymMalicki MaksymMalicki changed the title Entry code generation fix Cairo1 runner fixes Dec 10, 2024
@MaksymMalicki
Copy link
Contributor Author

Current changes in the existing code feature:

  1. Loading gas and entrypoints arguments to the execution segment after builtins pointer
  2. Using only builtins present in program builtins field in Execution mode
  3. Modifying the keys in the hintmap by the size of entry code instructions
  4. Refactorings of the code

MaksymMalicki and others added 5 commits December 25, 2024 21:55
* Add parsing logic for input user args

* Add flags for available gas, input user args, writing args to memory

* Fix unit tests for user arguments parsing

* Lint the PR

* Add user args to hint context

* Refactor the code

* Fix unconditional append of ExternalWriteArgsToMemory, bug fixes in integration tests

* Add fixes of the call size calculation and include ExternalWriteArgsToMemory hint when gas present

* Add layouts for integration tests

* Add error handling

* Fixes in entry code generation

* Address changes mentioned in a discussion

* Add comment regarding writing to memory in a hint for the future reference in the integration tests with args

* Changes in calculations of the initial PC offset, CALL opcode offset incremented by mainFuncOffset, writing user args to the AP in the hint

* Turn back VM config to private field

* Add error handling on assign of `userArgs` to the initial scope

* Lint project

* Bump go version from 1.20 -> 1.21 (#678)

* Bump go version from 1.20 -> 1.21

* Update golangci-lint

* Simplify the Makefile

* Correction in the makefile
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.

1 participant