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