Update nitro-rpc-client usage in genesis generation script (#4)
Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675) Reviewed-on: #4 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
parent
e254bff201
commit
5206810eca
@ -4,7 +4,7 @@
|
||||
set -e
|
||||
|
||||
# Prerequisite: nitro-rpc-client package installed globally
|
||||
# https://github.com/cerc-io/go-nitro/blob/main/packages/nitro-rpc-client/readme.md
|
||||
# https://github.com/cerc-io/go-nitro/blob/main/packages/nitro-rpc-client/readme.md#global-install
|
||||
|
||||
# Check args
|
||||
if [ "$#" -ne 1 ]; then
|
||||
@ -26,7 +26,7 @@ mkdir -p $STAGE1_GENESIS_DIR
|
||||
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
|
||||
|
||||
# Run the nitro-rpc-client command and process the output with jq
|
||||
eth_account_holdings=$(nitro-rpc-client get-all-ledger-channels -p 4006 | jq -s '[.[] | {nitro_address: .Balance.Them, balance: .Balance.TheirBalance}]')
|
||||
eth_account_holdings=$(nitro-rpc-client get-all-l2-channels -p 4006 | jq -s '[.[] | {nitro_address: .Balance.Them, balance: .Balance.TheirBalance}]')
|
||||
|
||||
echo "Fetched Ethereum account holdings"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user