Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zkPorpoise committed Feb 26, 2024
1 parent 0da851f commit 0f09077
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion take-survey.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
} else {
predictionSalt = (predictionSalt === 0) ? generateRandomString(18) : predictionSalt;
console.log("Prediction Salt: ", predictionSalt);
predictionCommitment(predictionSalt, prediction, stringToBuffer(surveyRoot, 'hex')).then((commitment) => {
predictionCommitment(predictionSalt, prediction, stringToBuffer(surveyRoot, 'hex')).then((commitmentBuffer) => {
const commitment = arrayBufferToHex(commitmentBuffer);
setPredictionHTMLElements(commitment);
savePrediction(prediction, predictionSalt, commitment);
getPasskeySignature(commitment);
Expand Down

0 comments on commit 0f09077

Please sign in to comment.