Skip to content

Why is [FAIL. Reason: MerkleAirdrop__InvalidProof()] happening when running the test in Section 4: Airdrop and Signatures? #2081

Discussion options

You must be logged in to vote

Hi @palmcivet7 you need to update the root in the deployment script: https://github.com/Cyfrin/foundry-merkle-airdrop-cu/blob/main/script/DeployMerkleAirdrop.s.sol
I have updated the repo, thanks for spotting this!
Double check the roots and proofs in the test (or interaction script) and root in the deployment script all match your output.json file:)
Hope this helps

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@palmcivet7
Comment options

@EngrPips
Comment options

@ciaranightingale
Comment options

Answer selected by palmcivet7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants