Skip to content

Conversation

@smol-ninja
Copy link
Member

@smol-ninja smol-ninja commented Nov 27, 2025

This PR addresses refactors required for the invariants PR.

Changelog

  • Change type of MerkleBuilder from library to contract. Why? Because this allowed me to add all merkle tree related functions to MerkleBuilder such as computeMerkleProof and constructMerkleTree. Previosuly these were part of Fuzzers.
  • Keep only fuzzing related functions in Fuzzers.
  • So now we have MerkleBuilder which deals with merkle tree related functions and it makes it easy to import into invariant handlers.

test: add computeMerkleProof and constructMerkleTree to MerkleBuilder
test: add helper function to compute root in Fuzzers
test: refactor fuzz and fork tests with the new structure
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.

2 participants