From 5206810eca72901899f661abebc7cbf6a3de3783 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 16 Jul 2024 14:40:11 +0000 Subject: [PATCH] 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: https://git.vdb.to/cerc-io/fixturenet-laconicd-stack/pulls/4 Co-authored-by: Prathamesh Musale Co-committed-by: Prathamesh Musale --- .../fixturenet-laconicd/scripts/generate-stage1-genesis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh index 5e220d7..33f7080 100755 --- a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh +++ b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh @@ -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"