Skip to content

Commit

Permalink
Update vicky.js
Browse files Browse the repository at this point in the history
  • Loading branch information
supertestnet authored Dec 8, 2023
1 parent a45648d commit c63316e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/view/vicky.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async function handlePromise(json) {
var sum_of_all_output_sizes = circuit.output_sizes.reduce((ac, c) => ac + c, 0);
var preimages_expected = sum_of_all_output_sizes;
if ( program == "8bit cpu with 64 cyles" )
if ( !( "preimages_expected" in json ) || !( "preimage_positions" in json ) ) return alert( `Your counterparty did not send you good data about the preimages you ought to expect in the output. Aborting.` );
if ( !( "preimages_to_expect" in json ) || !( "preimage_positions" in json ) ) return alert( `Your counterparty did not send you good data about the preimages you ought to expect in the output. Aborting.` );
preimages_expected = json[ "preimages_to_expect" ];
var expected_preimage_positions = json[ "preimage_positions" ];
var preimage_positions = [];
Expand Down

0 comments on commit c63316e

Please sign in to comment.