Skip to content

Commit

Permalink
snap: fixed using right merkle proof field
Browse files Browse the repository at this point in the history
  • Loading branch information
zwilling committed Oct 10, 2024
1 parent 3ba94d4 commit 7c46cb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@galactica-net/snap",
"version": "0.8.2",
"version": "0.8.3",
"description": "A Metamask Snap for managing and using zkCertificates on the Galactica network.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "0.8.2",
"version": "0.8.3",
"description": "A Metamask Snap for managing and using zkCertificates on the Galactica network.",
"proposedName": "Galactica ZK Vault",
"repository": {
"type": "git",
"url": "https://github.com/Galactica-corp/galactica-snap.git"
},
"source": {
"shasum": "r/8s5Pn+OzfE1+T92tgL9LjjJ5bYqRdP39zVdKq3yzA=",
"shasum": "cGKt6nNCMN6tJAyXdCH/6Pw2J9l2IvsY2uTjsIJiitk=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/snap/src/merkleProofSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export async function getMerkleProof(
if ((zkCert.merkleProof as any).leaf === undefined) {
throw new GenericError({
name: 'MerkleProofUpdateFailed',
message: `Merkle proof is missing leaf`,
message: `Merkle proof is missing index`,
});
}
zkCert.merkleProof.leafIndex = (zkCert.merkleProof as any).leaf;
zkCert.merkleProof.leafIndex = (zkCert.merkleProof as any).index;
}

if (
Expand Down

0 comments on commit 7c46cb4

Please sign in to comment.