Skip to content

Commit

Permalink
also count
Browse files Browse the repository at this point in the history
  • Loading branch information
dskloetd committed Nov 4, 2024
1 parent c31d3a4 commit 2050145
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/dfx-sns-import-by-proposal
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,12 @@ for ((try = 20; try > 0; try--)); do
sleep 2
done

echo "Current existing SNS root canister Ids:"
list_root_canister_id() {
dfx canister call nns-sns-wasm list_deployed_snses '(record{})' | idl2json | jq -r '.instances[] | .root_canister_id[0]'
}

echo "Current $(list_root_canister_id | wc -l) existing SNS root canister Ids:"
list_deployed_snses

if [[ "$SUCCESS" = "false" ]]; then
echo "Failed to import SNS canisters for proposal $PROPOSAL_ID" >&2
Expand Down

0 comments on commit 2050145

Please sign in to comment.