From af5d1f11cbaa567771cfbd0ce338d06afb93106c Mon Sep 17 00:00:00 2001 From: iseriohn Date: Mon, 17 Jul 2023 15:15:30 -0400 Subject: [PATCH] update dockerfile --- dapps/phase2-registration/src/routes/docker.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dapps/phase2-registration/src/routes/docker.tsx b/dapps/phase2-registration/src/routes/docker.tsx index 98c1eab0bf5b0..aa0341f52861d 100644 --- a/dapps/phase2-registration/src/routes/docker.tsx +++ b/dapps/phase2-registration/src/routes/docker.tsx @@ -2,7 +2,7 @@ import { addEphemeralKeyMsg, generateSignature, httpCall, downloadScript } from import nacl from 'tweetnacl'; const dockerFile = -"cargo build --release\ncargo run --realse -p client"; +"git clone https://github.com/MystenLabs/ts-coordinator.git \ncd ts-coordinator \ncargo build --release \nCOMMAND=\"cargo run --release -p client $ADDR $ATTESTATION_KEY $OPTION\"for i in ${!ENTROPY[@]}; do \n COMMAND+=\" ${ENTROPY[$i]}\" \ndone \n$COMMAND"; export async function contributeViaDocker(repo, currentAccount, signMessage, setUserState) { var addr = currentAccount.address; @@ -31,15 +31,16 @@ export async function contributeViaDocker(repo, currentAccount, signMessage, set http.onreadystatechange = (e) => { if (http.readyState === 4 && http.status === 200) { alert(http.responseText); - var text = "ATTESTATION_KEY=" + btoa(String.fromCharCode.apply(null, ephemeralKey.secretKey)); + var text = "ADDR=" + addr; + text = text + "\nATTESTATION_KEY=" + btoa(String.fromCharCode.apply(null, ephemeralKey.secretKey)); text = text + "\nOPTION=" + repo; - text = text + "\nENTROPY=["; + text = text + "\nENTROPY=("; var responseText = JSON.parse(http.responseText); for (var i = 1; i <= responseText.result.num_circuits; ++i) { let entropy = prompt("Please enter any text to add entropy in contribution to circuit #" + i.toString(), ""); - text = text + '"' + entropy + '",'; + text = text + '"' + entropy + '" '; } - text = text + "]\n" + dockerFile; + text = text + ")\n" + dockerFile; downloadScript("Dockerfile", text); setUserState(null); }