forked from cerc-io/stack-orchestrator
Nabarun Gogoi
f23c22d5b9
* Remove laconicd to use optimism endpoint
* Use fixturenet-optimism stack for mobymask-v2-watcher
* Fix setting L1 account private key in mobymask-v2 stack
Former-commit-id: b266ac78b4
12 lines
379 B
Bash
12 lines
379 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# Read the private key of L1 account to deploy contract
|
|
# TODO: Take from env if /geth-accounts volume doesn't exist to allow using separately running L1
|
|
L1_PRIV_KEY=$(head -n 1 /geth-accounts/accounts.csv | cut -d ',' -f 3)
|
|
|
|
# Set the private key
|
|
jq --arg privateKey "$L1_PRIV_KEY" '.privateKey = ($privateKey)' secrets-template.json > secrets.json
|
|
|
|
npm start
|