Skip to content

Commit

Permalink
fix(on-chain-state-mgmt-zkapp-ui.js): change proof extraction from tr…
Browse files Browse the repository at this point in the history
…ansaction.prove() to correctly get proof data

This change is necessary because the previous implementation was not correctly extracting the proof data from the transaction.prove() promise.
  • Loading branch information
MartinMinkov committed Apr 17, 2024
1 parent 155a12b commit 8e76633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/artifacts/javascript/on-chain-state-mgmt-zkapp-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ updateButton.addEventListener('click', async (event) => {
);
});

const [proof] = await transaction.prove();
const [proof] = (await transaction.prove()).proofs;

if (verificationKey) {
let isVerified = await verify(proof, verificationKey.data);
Expand Down

0 comments on commit 8e76633

Please sign in to comment.