Skip to content

Commit

Permalink
fix: compression proof verification check (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty authored May 3, 2023
1 parent 7747dea commit 0b77c1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thirty-panthers-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@metaplex-foundation/js": patch
---

fix: compression proof verification check
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export const transferCompressedNftBuilder = (

// check if the provided assetProof path is valid for the provided root
if (
MerkleTree.verify(new PublicKey(compression.assetProof.root).toBuffer(), {
!MerkleTree.verify(new PublicKey(compression.assetProof.root).toBuffer(), {
leafIndex: compression.data.leaf_id,
leaf: new PublicKey(compression.assetProof.leaf).toBuffer(),
root: new PublicKey(compression.assetProof.root).toBuffer(),
Expand Down

0 comments on commit 0b77c1a

Please sign in to comment.