From 4d9c5eb43af7bf38e9d3c43cd4b33db7d51978ac Mon Sep 17 00:00:00 2001 From: Mudassir Shabbir Date: Wed, 25 Sep 2024 22:20:42 +0500 Subject: [PATCH 1/2] chore: auto-update ADDR --- contract/Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/contract/Makefile b/contract/Makefile index 822cba7..9e20c61 100644 --- a/contract/Makefile +++ b/contract/Makefile @@ -6,9 +6,20 @@ BLD=000000ubld ATOM_DENOM=ibc/BA313C4A19DFBF943586C0387E6B11286F9E416B4DD27574E6909CABE0E342FA ATOM=000000$(ATOM_DENOM) -# your deployer address made from make add-address -# ADDR=agoric1k78s7qz7rxy8afyjrqk3dntg8m83zaw3upe60p -ADDR=agoric125d8s0tamx50gpqdd3m7f5gtkzkcnjs0ehsujr + +# fetch the address of the deployer account from the chain - you may need to adjust this to match your setup +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 From f68137aeba9e2f1b4b29509a2b31dabd3e732f70 Mon Sep 17 00:00:00 2001 From: Mudassir Shabbir Date: Fri, 27 Sep 2024 18:29:21 +0500 Subject: [PATCH 2/2] fixup! remove unnecessary instructions --- contract/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/contract/Makefile b/contract/Makefile index 9e20c61..6313c1e 100644 --- a/contract/Makefile +++ b/contract/Makefile @@ -6,8 +6,6 @@ BLD=000000ubld ATOM_DENOM=ibc/BA313C4A19DFBF943586C0387E6B11286F9E416B4DD27574E6909CABE0E342FA ATOM=000000$(ATOM_DENOM) - -# fetch the address of the deployer account from the chain - you may need to adjust this to match your setup USERNAME ?= user1 ADDR := $(shell kubectl exec -i agoriclocal-genesis-0 -c validator -- sh -c '\