-
Notifications
You must be signed in to change notification settings - Fork 199
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
feat: refactor Commitment trait to return Vec<Self> instead of mutating slice #184
feat: refactor Commitment trait to return Vec<Self> instead of mutating slice #184
Conversation
@Gmin2 Thanks a bunch for the effort on this, can you please check our CI and ensure that clippy and cargo fmt have been run as currently these appear to be failing in the CI. Thank you! Feel free to request a review when these items are addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just run cargo fmt
and clean up the clippy
lint, and it will be good to go!
We run both of the following in CI:
cargo fmt --all -- --config imports_granularity=Crate,group_imports=One
cargo clippy --all-targets --all-features -- -D warnings
@JayWhite2357 , done with the changes |
/approve |
@JayWhite2357: The claim has been successfully added to reward-all. You can visit your dashboard to complete the payment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks!
🎉 This PR is included in version 0.22.15 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Rationale for this change
Mentioned in #165
What changes are included in this PR?
Commitment
trait'scompute_commitments
method to returnVec<Self>
instead of mutating a pre-allocated slice.NaiveCommitment
,DoryCommitment
, andDynamicDoryCommitment
to align with the new trait definition.Fixes #165
/claim #165