Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 0b77c1a

Browse files
authoredMay 3, 2023
fix: compression proof verification check (#504)

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/thirty-panthers-peel.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@metaplex-foundation/js": patch
3+
---
4+
5+
fix: compression proof verification check

‎packages/js/src/plugins/nftModule/operations/transferCompressedNft.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export const transferCompressedNftBuilder = (
224224

225225
// check if the provided assetProof path is valid for the provided root
226226
if (
227-
MerkleTree.verify(new PublicKey(compression.assetProof.root).toBuffer(), {
227+
!MerkleTree.verify(new PublicKey(compression.assetProof.root).toBuffer(), {
228228
leafIndex: compression.data.leaf_id,
229229
leaf: new PublicKey(compression.assetProof.leaf).toBuffer(),
230230
root: new PublicKey(compression.assetProof.root).toBuffer(),

0 commit comments

Comments
 (0)
This repository has been archived.