Skip to content

Commit 2e046f7

Browse files
committed
fix(deployment): ensure that the faucet is given urun
1 parent c6612ea commit 2e046f7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/deployment/ansible/cosmos-genesis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
- BOOTSTRAP_TOKENS: 100provisionpass
1010
- CHAIN_NAME: "{{ lookup('file', SETUP_HOME + '/ag-chain-cosmos/chain-name.txt') }}"
1111
- NETWORK_CONFIG_URL: https://testnet.agoric.com/network-config
12+
- FAUCET_TOKENS: "{{ lookup('file', SETUP_HOME + '/boot-tokens.txt') }}"
1213
- STAKER: ag-staker
13-
- STAKER_TOKENS: 10000000000000000000000000ubld
1414
- STAKER_INIT_COINS: 62000000ubld
1515
- STAKER_SELF_DELEGATION: 50000000ubld
1616
- STAKER_NODE: validator0

packages/deployment/ansible/roles/cosmos-genesis/files/faucet-helper.sh

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ while [[ ${#rpcAddrs[@]} -gt 0 ]]; do
9393
echo "$ADDR:$DELEGATE_COINS:$NAME" >> $thisdir/cosmos-delegates.txt
9494
exit 0
9595
fi
96+
exit $?
9697
;;
9798
*)
9899
echo 1>&2 "Unknown operation $OP"

packages/deployment/ansible/roles/cosmos-genesis/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
become_user: "{{ service }}"
5151
shell: "\
5252
{{ service }} add-genesis-account \
53-
{{ faucet }} {{ STAKER_TOKENS }},{{ BOOTSTRAP_TOKENS }}"
53+
{{ faucet }} {{ FAUCET_TOKENS }},{{ BOOTSTRAP_TOKENS }}"
5454

5555
- name: "Add {{ STAKER_INIT_COINS }} coins to {{ STAKER }}-{{ STAKER_NODE }}"
5656
become: yes

0 commit comments

Comments
 (0)