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
444 B
Bash
Executable File
12 lines
444 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Assign deployed contract address from server config
|
|
CONTRACT_ADDRESS=$(jq -r '.address' /server/config.json | tr -d '"')
|
|
L1_PRIV_KEY_2=$(awk -F, 'NR==2{print $NF}' /geth-accounts/accounts.csv)
|
|
|
|
sed "s/REPLACE_WITH_PRIVATE_KEY/${L1_PRIV_KEY_2}/" environments/watcher-config-template.toml > environments/local.toml
|
|
sed -i "s/REPLACE_WITH_CONTRACT_ADDRESS/${CONTRACT_ADDRESS}/" environments/local.toml
|
|
|
|
echo 'yarn server'
|
|
yarn server
|