-
Notifications
You must be signed in to change notification settings - Fork 164
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 unit tests for functions on run_context.rs #25
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
azteca1998
added a commit
that referenced
this pull request
Feb 10, 2023
* Add SyscallRequest::Deploy(DeployRequestStruct) * Start BusinessLogicSyscallHandler::_deploy implementation * Add naive implementation of fn Os::ContractAddress::calculate_contract_address_from_hash * add starknet-crypto dependecie * first implementation of fn compute_hash_on_elements + unit tests * use get_integer_range * Add bigint! and bigint_str! macros * Update fns calculate_contract_address_from_hash && compute_hash_on_elements * add SyscallHandlerError::FailToComputeHash * Minor midifications * mv src/core/os/contact_address.rs -> src/hash_utils.rs * handle Errors && cargo clippy * delete syscall_handler.rs * fix merge main conflicts * add deploy read_syscall_request * Add PartialEq to SyscallRequest * Add read_deploy_syscall_request * Modify BusinessLogicSyscallHandler::new to return self + BusinessLogicSyscallHandler::Default * Add test_calculate_contract_address_from_hash * Modify DeployStruct.deploy_from_zero to be a usize + unit test * Add `rust-toolchain`. (#11) * Add `rust-toolchain`. * Update Rust version to `1.62.0`. * Update makefile and gitignore (#19) * Update gitignore * Update Makefile * add endline Co-authored-by: Pedro Fontana <pedro.fontana@lamdaclass.com> * Add macro to insert data in memory (#20) * Add macro to insert data in memory * Fix macro * Add struct SendMessageToL1SysCall * Add send_message_to_l1 in read_syscall_request * Create struct OrderedL2ToL1Message * Implement method BusinessLogicSyscallHandler.send_message_to_l1 * solve merge conflicts * Add unit tests * Add GetCallerAddressRequest * Add unit test Co-authored-by: Pedro Fontana <pedro.fontana@lamdaclass.com> Co-authored-by: MrAzteca <azteca1998@users.noreply.github.com> Co-authored-by: mmsc2 <88055861+mmsc2@users.noreply.github.com>
mfachal
added a commit
that referenced
this pull request
Apr 25, 2023
Oppen
added a commit
that referenced
this pull request
Apr 26, 2023
…1026) * WIP newhint#17 and newhint#18 * WIP cairo program * add secp256r1 testing programs and newhint#17 and #18 * update changelog * remove program using unimplemented hint * add correct constants to test program * fix broken test when executing hint #25 with different context * Update CHANGELOG.md Co-authored-by: Mario Rugiero <mario.rugiero@lambdaclass.com> * merge * add unit test for import alpha --------- Co-authored-by: Mario Rugiero <mario.rugiero@lambdaclass.com>
kariy
pushed a commit
to dojoengine/cairo-rs
that referenced
this pull request
Jun 23, 2023
…ambdaclass#1026) * WIP newhint#17 and newhint#18 * WIP cairo program * add secp256r1 testing programs and newhint#17 and lambdaclass#18 * update changelog * remove program using unimplemented hint * add correct constants to test program * fix broken test when executing hint lambdaclass#25 with different context * Update CHANGELOG.md Co-authored-by: Mario Rugiero <mario.rugiero@lambdaclass.com> * merge * add unit test for import alpha --------- Co-authored-by: Mario Rugiero <mario.rugiero@lambdaclass.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request #21 should be merged before this one, as the function Memory::new() is needed in order to run these tests