From fa5a091fc6054c507550996197a82e2ec37cc3c9 Mon Sep 17 00:00:00 2001 From: Starsquid <108214377+starsquidnodes@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:45:22 +0100 Subject: [PATCH] Fix address string --- prepare/contracts/deploy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prepare/contracts/deploy.py b/prepare/contracts/deploy.py index 3904a78..d8a75d3 100755 --- a/prepare/contracts/deploy.py +++ b/prepare/contracts/deploy.py @@ -80,7 +80,7 @@ def _set_wallet_address(self): result = subprocess.run(command, capture_output=True, text=True) - address = result.stdout + address = result.stdout.strip() if not address: error("couldn't get address", wallet=self.wallet) @@ -335,6 +335,7 @@ def handle_contract(self, definition): } rendered = template.render(**params) + contract = Contract(json.loads(rendered)) # generate address