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

Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
This commit is contained in:
Hadrien Croubois
2025-02-28 21:22:56 +01:00
committed by GitHub
parent 7276774f34
commit 71bc0f7774
4 changed files with 213 additions and 28 deletions

View File

@ -0,0 +1,5 @@
---
'openzeppelin-solidity': minor
---
`MerkleTree`: Add an update function that replaces a previously inserted leaf with a new value, updating the tree root along the way.