Skip to content

Commit

Permalink
Reset binary receipt when switching to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldowman committed Mar 15, 2024
1 parent d336a1d commit 595a04e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eqty/risc-zero-verifier-react",
"version": "0.2.0",
"version": "0.2.1",
"main": "dist/index.js",
"license": "Apache-2.0",
"description": "Verifier for RISC Zero receipts. See also risc-zero-verifier for a package with no UI component.",
Expand Down
1 change: 1 addition & 0 deletions react/src/Verifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function Verifier({
try {
receiptJson = JSON.parse(text);
setReceiptJson(JSON.stringify(receiptJson));
setReceiptBinary(null);
} catch (error) {
// Try to convert from binary, expecting bincode format, if JSON parsing fails
const fallbackReader = new FileReader();
Expand Down

0 comments on commit 595a04e

Please sign in to comment.