Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fixes for hints, change the order of tokens in gas.go (#679)
* Fixes for the generation of entry code, fixes of hints parsing * Add modifications to the runner * Add fixes for the entrycode generation * Refactor main CLI, offset the hints indexes by entry code size, load arguments and initial gas to the memory * Add available gas and user args (#677) * 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 * Fix the integration tests * Fixes in the runner * Fixes in the runner * Fix the unit tests, uncomment pythonVm execution in integration tests, code cleanups * Add writing tokens gas cost to memory * Proper builtins initialization for cairo mode * Add fixes for hints, change the order of tokens in gas.go * Address comments in the PR * gofmt * remove systemtype builtin
- Loading branch information