Skip to content

Add function to update a leaf in a MerkleTree structure #5453

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

Merged
merged 10 commits into from
Feb 28, 2025

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Jan 22, 2025

This has been requested numerous time.

This implementation has limitations (sensitive to ordering/fronturnning) but:

  • its backward compatible
  • it should not break the contract (worst case is the transaction fails)
  • we can always replace it with a better implementation in the future

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

Copy link

changeset-bot bot commented Jan 22, 2025

🦋 Changeset detected

Latest commit: 3449581

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openzeppelin-solidity Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Amxx Amxx marked this pull request as draft January 22, 2025 22:52
@Amxx Amxx added this to the 5.3 milestone Feb 13, 2025
@Amxx Amxx marked this pull request as ready for review February 13, 2025 10:46
arr00
arr00 previously approved these changes Feb 21, 2025
@T10876
Copy link

T10876 commented Feb 25, 2025

شكرا

@Amxx Amxx merged commit 71bc0f7 into OpenZeppelin:master Feb 28, 2025
17 checks passed
@Amxx Amxx deleted the feature/merkle-tree-update branch February 28, 2025 20:23
Amxx added a commit to Amxx/openzeppelin-contracts that referenced this pull request Feb 28, 2025
@Amxx Amxx mentioned this pull request Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants