We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b5ee04 commit 880b390Copy full SHA for 880b390
contract/Makefile
@@ -8,7 +8,18 @@ ATOM=000000$(ATOM_DENOM)
8
9
10
# fetch the address of the deployer account from the chain - you may need to adjust this to match your setup
11
-ADDR=$(kubectl exec -i agoriclocal-genesis-0 -c validator -- agd keys add user1 | jq -r '.address')
+USERNAME ?= user1
12
+
13
+ADDR := $(shell kubectl exec -i agoriclocal-genesis-0 -c validator -- sh -c '\
14
+ if ! agd keys show $(USERNAME) >/dev/null 2>&1; then \
15
+ agd keys add $(USERNAME) --output json; \
16
+ else \
17
+ agd keys show $(USERNAME) --output json; \
18
+ fi' | jq -r ".address" \
19
+)
20
21
+$(info USERNAME is $(USERNAME))
22
+$(info ADDR is $(ADDR))
23
24
PROVISION_POOL_ADDR=agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346
25
0 commit comments