Skip to content

Commit

Permalink
chore: add port as env variable and remove redundant param in testScr…
Browse files Browse the repository at this point in the history
…ipt (#1577)
  • Loading branch information
kittybest authored Jun 19, 2024
1 parent 00829f4 commit 71014a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 1 addition & 5 deletions contracts/testScriptLocalhost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,5 @@ pnpm run merge:localhost --poll 0

pnpm run prove:localhost --poll 0 \
--coordinator-private-key "macisk.1751146b59d32e3c0d7426de411218172428263f93b2fc4d981c036047a4d8c0" \
--process-zkey ../cli/zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test.0.zkey \
--tally-zkey ../cli/zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test.0.zkey \
--tally-file ../cli/tally.json \
--output-dir ../cli/proofs/ \
--tally-wasm ../cli/zkeys/TallyVotes_10-1-2_test/TallyVotes_10-1-2_test_js/TallyVotes_10-1-2_test.wasm \
--process-wasm ../cli/zkeys/ProcessMessages_10-2-1-2_test/ProcessMessages_10-2-1-2_test_js/ProcessMessages_10-2-1-2_test.wasm
--output-dir ../cli/proofs/
4 changes: 3 additions & 1 deletion coordinator/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ COORDINATOR_RPC_URL=http://localhost:8545
# Coordinator Ethereum addresses (see ts/auth/AccountSignatureGuard.service.ts)
COORDINATOR_ADDRESSES=

# Allowed origin host
# Allowed origin host, use comma to separate each of them
COORDINATOR_ALLOWED_ORIGINS=

# Specify port for coordinator service (optional)
COORDINATOR_PORT=
2 changes: 1 addition & 1 deletion coordinator/ts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function bootstrap() {
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup("api", app, document);

await app.listen(3000);
await app.listen(process.env.COORDINATOR_PORT ?? 3000);
}

bootstrap();

0 comments on commit 71014a9

Please sign in to comment.