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

test: add cairo0 support to initialize_rpc_test_state #259

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

Yael-Starkware
Copy link
Contributor

@Yael-Starkware Yael-Starkware commented Jun 20, 2024

This change is Reviewable

Copy link
Collaborator

@dafnamatsry dafnamatsry left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArniStarkware and @Yael-Starkware)


crates/tests-integration/src/state_reader.rs line 130 at r1 (raw file):

    cairo0_contract_classes: &mut Vec<(ClassHash, DeprecatedContractClass)>,
    cairo1_contract_classes: &mut Vec<(ClassHash, CasmContractClass)>,
) {

Consider constructing the vectors inside this function and return them in the return value.

Suggestion:

fn prepare_compiled_contract_classes(
    contract_instances: &[(FeatureContract, u16)],
) -> (Vec<(ClassHash, DeprecatedContractClass)>, Vec<(ClassHash, CasmContractClass)>) {

@Yael-Starkware Yael-Starkware force-pushed the yael/add_cairo0_support_to_rpc_test_state branch from 6680dc2 to 3ddecb6 Compare June 23, 2024 11:57
Copy link
Contributor Author

@Yael-Starkware Yael-Starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware and @dafnamatsry)


crates/tests-integration/src/state_reader.rs line 130 at r1 (raw file):

Previously, dafnamatsry wrote…

Consider constructing the vectors inside this function and return them in the return value.

Done.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 80.00000% with 14 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@2085ff5). Learn more about missing BASE report.
Report is 1 commits behind head on main.

Files Patch % Lines
crates/tests-integration/src/state_reader.rs 80.00% 13 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #259   +/-   ##
=======================================
  Coverage        ?   80.98%           
=======================================
  Files           ?       25           
  Lines           ?     1152           
  Branches        ?     1152           
=======================================
  Hits            ?      933           
  Misses          ?      170           
  Partials        ?       49           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Yael-Starkware Yael-Starkware force-pushed the yael/add_cairo0_support_to_rpc_test_state branch from 3ddecb6 to 9f946d1 Compare June 23, 2024 12:05
Copy link
Contributor Author

@Yael-Starkware Yael-Starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 3 files reviewed, 2 unresolved discussions (waiting on @ArniStarkware and @dafnamatsry)


crates/tests-integration/src/state_reader.rs line 39 at r3 (raw file):

type ContractClassesMap =
    (Vec<(ClassHash, DeprecatedContractClass)>, Vec<(ClassHash, CasmContractClass)>);

Clippy made me add this.

Copy link
Collaborator

@dafnamatsry dafnamatsry left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r3.
Reviewable status: all files reviewed (commit messages unreviewed), 1 unresolved discussion (waiting on @ArniStarkware)

Copy link
Contributor

@ArniStarkware ArniStarkware left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Yael-Starkware)

@Yael-Starkware Yael-Starkware merged commit 975d494 into main Jun 24, 2024
8 checks passed
@Yael-Starkware Yael-Starkware deleted the yael/add_cairo0_support_to_rpc_test_state branch June 24, 2024 04:58
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.

4 participants