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

fix: changes to api #44

Merged
merged 1 commit into from
Apr 16, 2024
Merged

fix: changes to api #44

merged 1 commit into from
Apr 16, 2024

Conversation

amosStarkware
Copy link
Contributor

@amosStarkware amosStarkware commented Apr 16, 2024

This change is Reviewable

@amosStarkware amosStarkware self-assigned this Apr 16, 2024
@codecov-commenter
Copy link

codecov-commenter commented Apr 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.75%. Comparing base (d145432) to head (039416d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #44   +/-   ##
=======================================
  Coverage   29.75%   29.75%           
=======================================
  Files           8        8           
  Lines         121      121           
  Branches      121      121           
=======================================
  Hits           36       36           
  Misses         84       84           
  Partials        1        1           

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

Copy link
Contributor Author

@amosStarkware amosStarkware left a comment

Choose a reason for hiding this comment

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

+reviewer:@dorimedini-starkware
@nimrod-starkware any more changes you need?

Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/committer/src/patricia_merkle_tree/original_skeleton_tree.rs line 22 at r2 (raw file):

        root_hash: HashOutput,
        tree_height: TreeHeight,
    ) -> OriginalSkeletonTreeResult<impl OriginalSkeletonTree<L>>;

Rust requires a box when returning Self, but this way it doesn't

Code quote:

) -> OriginalSkeletonTreeResult<impl OriginalSkeletonTree<L>>;

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @amosStarkware)


crates/committer/src/patricia_merkle_tree/original_skeleton_tree.rs line 18 at r2 (raw file):

pub(crate) trait OriginalSkeletonTree<L: LeafDataTrait> {
    fn compute_original_skeleton_tree(
        storage: &mut impl Storage,

must this be mutable...?

Code quote:

storage: &mut impl Storage

crates/committer/src/patricia_merkle_tree/original_skeleton_tree.rs line 22 at r2 (raw file):

Previously, amosStarkware wrote…

Rust requires a box when returning Self, but this way it doesn't

nice!

Copy link
Contributor Author

@amosStarkware amosStarkware 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: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/committer/src/patricia_merkle_tree/original_skeleton_tree.rs line 18 at r2 (raw file):

Previously, dorimedini-starkware wrote…

must this be mutable...?

It doesn't, thanks

Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware 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, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @amosStarkware)

@amosStarkware amosStarkware added this pull request to the merge queue Apr 16, 2024
Merged via the queue into main with commit 327416b Apr 16, 2024
10 checks passed
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.

3 participants