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

Improve run context functions #17

Merged
merged 4 commits into from
May 10, 2022

Conversation

fmoletta
Copy link
Member

@fmoletta fmoletta commented May 5, 2022

Removed useless code and unnecessary error handling from the functions compute_op0_address, compute_op1_address and compute_dst_address

@fmoletta fmoletta changed the base branch from main to relocatable-tests May 5, 2022 21:36
@unbalancedparentheses unbalancedparentheses merged commit 0b1561d into relocatable-tests May 10, 2022
@unbalancedparentheses unbalancedparentheses deleted the improve-run-context branch May 10, 2022 11:54
azteca1998 pushed a commit that referenced this pull request Feb 10, 2023
…hod (#17)

* 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

Co-authored-by: Pedro Fontana <pedro.fontana@lamdaclass.com>
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.

None yet

3 participants