diff --git a/contract/Makefile b/contract/Makefile index 822cba7..6313c1e 100644 --- a/contract/Makefile +++ b/contract/Makefile @@ -6,9 +6,18 @@ BLD=000000ubld ATOM_DENOM=ibc/BA313C4A19DFBF943586C0387E6B11286F9E416B4DD27574E6909CABE0E342FA ATOM=000000$(ATOM_DENOM) -# your deployer address made from make add-address -# ADDR=agoric1k78s7qz7rxy8afyjrqk3dntg8m83zaw3upe60p -ADDR=agoric125d8s0tamx50gpqdd3m7f5gtkzkcnjs0ehsujr +USERNAME ?= user1 + +ADDR := $(shell kubectl exec -i agoriclocal-genesis-0 -c validator -- sh -c '\ + if ! agd keys show $(USERNAME) >/dev/null 2>&1; then \ + agd keys add $(USERNAME) --output json; \ + else \ + agd keys show $(USERNAME) --output json; \ + fi' | jq -r ".address" \ +) + +$(info USERNAME is $(USERNAME)) +$(info ADDR is $(ADDR)) PROVISION_POOL_ADDR=agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346