Skip to content

Commit

Permalink
chore: log deployment message only if deployer is present (#56)
Browse files Browse the repository at this point in the history
* chore: log deployment message only if deployer is present
  • Loading branch information
ori-shem-tov authored Aug 26, 2024
1 parent 50ce441 commit 7e7c429
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def main(action: str, contract_name: str | None = None) -> None:
build(artifact_path / contract.name, contract.path)
case "deploy":
for contract in filtered_contracts:
logger.info(f"Deploying app {contract.name}")
output_dir = artifact_path / contract.name
app_spec_file_name = next(
(
Expand All @@ -53,6 +52,7 @@ def main(action: str, contract_name: str | None = None) -> None:
raise Exception("Could not deploy app, .arc32.json file not found")
app_spec_path = output_dir / app_spec_file_name
if contract.deploy:
logger.info(f"Deploying app {contract.name}")
deploy(app_spec_path, contract.deploy)
case "all":
for contract in filtered_contracts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def main(action: str, contract_name: str | None = None) -> None:
build(artifact_path / contract.name, contract.path)
case "deploy":
for contract in filtered_contracts:
logger.info(f"Deploying app {contract.name}")
output_dir = artifact_path / contract.name
app_spec_file_name = next(
(
Expand All @@ -53,6 +52,7 @@ def main(action: str, contract_name: str | None = None) -> None:
raise Exception("Could not deploy app, .arc32.json file not found")
app_spec_path = output_dir / app_spec_file_name
if contract.deploy:
logger.info(f"Deploying app {contract.name}")
deploy(app_spec_path, contract.deploy)
case "all":
for contract in filtered_contracts:
Expand Down
2 changes: 1 addition & 1 deletion examples/production_python/smart_contracts/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def main(action: str, contract_name: str | None = None) -> None:
build(artifact_path / contract.name, contract.path)
case "deploy":
for contract in filtered_contracts:
logger.info(f"Deploying app {contract.name}")
output_dir = artifact_path / contract.name
app_spec_file_name = next(
(
Expand All @@ -53,6 +52,7 @@ def main(action: str, contract_name: str | None = None) -> None:
raise Exception("Could not deploy app, .arc32.json file not found")
app_spec_path = output_dir / app_spec_file_name
if contract.deploy:
logger.info(f"Deploying app {contract.name}")
deploy(app_spec_path, contract.deploy)
case "all":
for contract in filtered_contracts:
Expand Down
2 changes: 1 addition & 1 deletion examples/starter_python/smart_contracts/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def main(action: str, contract_name: str | None = None) -> None:
build(artifact_path / contract.name, contract.path)
case "deploy":
for contract in filtered_contracts:
logger.info(f"Deploying app {contract.name}")
output_dir = artifact_path / contract.name
app_spec_file_name = next(
(
Expand All @@ -53,6 +52,7 @@ def main(action: str, contract_name: str | None = None) -> None:
raise Exception("Could not deploy app, .arc32.json file not found")
app_spec_path = output_dir / app_spec_file_name
if contract.deploy:
logger.info(f"Deploying app {contract.name}")
deploy(app_spec_path, contract.deploy)
case "all":
for contract in filtered_contracts:
Expand Down
2 changes: 1 addition & 1 deletion template_content/smart_contracts/__main__.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def main(action: str, contract_name: str | None = None) -> None:
{%- if deployment_language == 'python' %}
case "deploy":
for contract in filtered_contracts:
logger.info(f"Deploying app {contract.name}")
output_dir = artifact_path / contract.name
app_spec_file_name = next(
(
Expand All @@ -56,6 +55,7 @@ def main(action: str, contract_name: str | None = None) -> None:
raise Exception("Could not deploy app, .arc32.json file not found")
app_spec_path = output_dir / app_spec_file_name
if contract.deploy:
logger.info(f"Deploying app {contract.name}")
deploy(app_spec_path, contract.deploy)
case "all":
for contract in filtered_contracts:
Expand Down

0 comments on commit 7e7c429

Please sign in to comment.