From 62450f7a705085e7bc2a93ba500b2362f24ae449 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Wed, 14 Aug 2024 14:51:36 +0530 Subject: [PATCH] Replace cosmos_address with laconic_address --- .../scripts/generate-stage1-genesis-using-allocations.sh | 2 +- .../fixturenet-laconicd/scripts/generate-stage1-genesis.sh | 2 +- .../stacks/fixturenet-laconicd/scripts/genesis.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis-using-allocations.sh b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis-using-allocations.sh index 6628183..d7d7d84 100755 --- a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis-using-allocations.sh +++ b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis-using-allocations.sh @@ -41,7 +41,7 @@ jq -n --argjson participants "$stage0_participants" --arg participant_allocation [ $participants[] | { - cosmos_address: .cosmos_address, + laconic_address: .laconic_address, balance: (if .role == "validator" then $validator_allocation else $participant_allocation end) } ]' > $stage1_allocations_file 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 7a7722c..b9aea2e 100755 --- a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh +++ b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/generate-stage1-genesis.sh @@ -49,7 +49,7 @@ jq -n --argjson holdings "$eth_account_holdings" --argjson participants "$stage0 $participants[] | select((.nitro_address | ascii_downcase) == ($holding.nitro_address | ascii_downcase)) | { - cosmos_address: .cosmos_address, + laconic_address: .laconic_address, balance: $holding.balance } ]' > $stage1_allocations_file diff --git a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh index 37a0e5e..8750b60 100755 --- a/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh +++ b/stack-orchestrator/stacks/fixturenet-laconicd/scripts/genesis.sh @@ -25,11 +25,11 @@ jq '.app_state["bank"]["params"]["default_send_enabled"]=false' "$stage1_genesis # Read and assign allocations jq -c '.[]' "$stage1_allocations_file" | while IFS= read -r line; do - cosmos_address=$(jq -r '.cosmos_address' <<< "$line") + laconic_address=$(jq -r '.laconic_address' <<< "$line") balance=$(jq -r '.balance' <<< "$line") # Add a genesis account for participant's laconic address with required balance - laconicd genesis add-genesis-account $cosmos_address ${balance}alnt + laconicd genesis add-genesis-account $laconic_address ${balance}alnt done # Ensure that resulting genesis file is valid