issues
search
astraly-labs
/
hyperlane_starknet
Starknet implementation of the Hyperlane protocol.
MIT License
35
stars
17
forks
source link
Audit: Array aize for Merkle Tree Branch
#82
Closed
JordyRo1
closed
4 months ago
JordyRo1
commented
4 months ago
Actual implementation
The actual
build_tree
implementation iterates until the
count
variable reach a certain value, while it should stop at TREE_DEPTH.
Solution
Switch to TREE_DEPTH
Actual implementation
build_tree
implementation iterates until thecount
variable reach a certain value, while it should stop at TREE_DEPTH.Solution