2018-08-07 03:25:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
geth account import test_pk --password config/development/password --datadir .embark/development/datadir/
|
|
|
|
echo 'Waiting 5s before unlocking the account'
|
2018-08-07 03:36:44 +00:00
|
|
|
sleep 5s
|
2018-08-07 03:25:39 +00:00
|
|
|
geth --exec "personal.unlockAccount('0xb8d851486d1c953e31a44374aca11151d49b8bb3', 'dev_password', 0)" attach .embark/development/datadir/geth.ipc
|
|
|
|
|
2018-08-07 03:36:44 +00:00
|
|
|
STT=`cat chains.json | awk /STT/,/}/ | grep -Pzo "0x[0-9A-Za-z]+"`
|
|
|
|
IdentityFactory=`cat chains.json | awk /IdentityFactory/,/}/ | grep -Pzo "0x[0-9A-Za-z]+"`
|
|
|
|
|
|
|
|
git checkout ../gas-relayer/config/config.json
|
|
|
|
sed -i 's/%STTAddress%/'"$STT"'/g' ../gas-relayer/config/config.json
|
|
|
|
sed -i 's/%IdentityFactoryAddress%/'"$IdentityFactory"'/g' ../gas-relayer/config/config.json
|