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

Add functionalities for main function inputs #681

Merged
merged 29 commits into from
Jan 22, 2025
Merged

Add functionalities for main function inputs #681

merged 29 commits into from
Jan 22, 2025

Conversation

MaksymMalicki
Copy link
Contributor

@MaksymMalicki MaksymMalicki commented Jan 12, 2025

No description provided.

MaksymMalicki and others added 19 commits November 15, 2024 16:16
* 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
@MaksymMalicki MaksymMalicki marked this pull request as draft January 12, 2025 11:39
@MaksymMalicki MaksymMalicki changed the title Add checks for the matching args size, rename files, modify the integ… Add functionalities for main function inputs Jan 12, 2025
Base automatically changed from missing_dict_functionalities to main January 14, 2025 14:16
@MaksymMalicki MaksymMalicki marked this pull request as ready for review January 16, 2025 12:51
pkg/hintrunner/core/hint.go Show resolved Hide resolved
integration_tests/cairo_vm_test.go Outdated Show resolved Hide resolved
pkg/hintrunner/hintrunner.go Outdated Show resolved Hide resolved
pkg/hintrunner/hintrunner.go Show resolved Hide resolved
pkg/hintrunner/hintrunner_test.go Outdated Show resolved Hide resolved
pkg/vm/builtins/builtin_runner.go Outdated Show resolved Hide resolved
Copy link
Contributor

@cicr99 cicr99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit tests are failing now. I think is the hintrunner_test.go the one having problems. Might have been because of the changes regarding NewHintRunner method?
Also integration tests are also failing.

@cicr99 cicr99 merged commit 5ada20b into main Jan 22, 2025
6 checks passed
@cicr99 cicr99 deleted the inputs branch January 22, 2025 16:04
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