I've been diving into using Foundry for Solidity testing, but I'm finding it difficult to test the OZ MerkleProof.verify() function. Everytime I try to construct the proof in bytes32 it fails or errors.
Tried [keccak256(abi.encodePacked("-proof node-")] and tried declaring bytes32 and pushing keccak256(abi.encodePacked("-proof node-"). Neither work, but merkleTree.verify works in JS.
Thanks for this. Could you share your whole test for context? Im doing this as well but seems to still be failing for me. Now Im curious to see how youre generating the merkle root and what your address formatting looks like. Thanks!