Skip to content

Commit 7e7c429

Browse files
authored
chore: log deployment message only if deployer is present (#56)
* chore: log deployment message only if deployer is present
1 parent 50ce441 commit 7e7c429

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/generators/production_python_smart_contract_python/smart_contracts/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def main(action: str, contract_name: str | None = None) -> None:
3939
build(artifact_path / contract.name, contract.path)
4040
case "deploy":
4141
for contract in filtered_contracts:
42-
logger.info(f"Deploying app {contract.name}")
4342
output_dir = artifact_path / contract.name
4443
app_spec_file_name = next(
4544
(
@@ -53,6 +52,7 @@ def main(action: str, contract_name: str | None = None) -> None:
5352
raise Exception("Could not deploy app, .arc32.json file not found")
5453
app_spec_path = output_dir / app_spec_file_name
5554
if contract.deploy:
55+
logger.info(f"Deploying app {contract.name}")
5656
deploy(app_spec_path, contract.deploy)
5757
case "all":
5858
for contract in filtered_contracts:

examples/generators/starter_python_smart_contract_python/smart_contracts/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def main(action: str, contract_name: str | None = None) -> None:
3939
build(artifact_path / contract.name, contract.path)
4040
case "deploy":
4141
for contract in filtered_contracts:
42-
logger.info(f"Deploying app {contract.name}")
4342
output_dir = artifact_path / contract.name
4443
app_spec_file_name = next(
4544
(
@@ -53,6 +52,7 @@ def main(action: str, contract_name: str | None = None) -> None:
5352
raise Exception("Could not deploy app, .arc32.json file not found")
5453
app_spec_path = output_dir / app_spec_file_name
5554
if contract.deploy:
55+
logger.info(f"Deploying app {contract.name}")
5656
deploy(app_spec_path, contract.deploy)
5757
case "all":
5858
for contract in filtered_contracts:

examples/production_python/smart_contracts/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def main(action: str, contract_name: str | None = None) -> None:
3939
build(artifact_path / contract.name, contract.path)
4040
case "deploy":
4141
for contract in filtered_contracts:
42-
logger.info(f"Deploying app {contract.name}")
4342
output_dir = artifact_path / contract.name
4443
app_spec_file_name = next(
4544
(
@@ -53,6 +52,7 @@ def main(action: str, contract_name: str | None = None) -> None:
5352
raise Exception("Could not deploy app, .arc32.json file not found")
5453
app_spec_path = output_dir / app_spec_file_name
5554
if contract.deploy:
55+
logger.info(f"Deploying app {contract.name}")
5656
deploy(app_spec_path, contract.deploy)
5757
case "all":
5858
for contract in filtered_contracts:

examples/starter_python/smart_contracts/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def main(action: str, contract_name: str | None = None) -> None:
3939
build(artifact_path / contract.name, contract.path)
4040
case "deploy":
4141
for contract in filtered_contracts:
42-
logger.info(f"Deploying app {contract.name}")
4342
output_dir = artifact_path / contract.name
4443
app_spec_file_name = next(
4544
(
@@ -53,6 +52,7 @@ def main(action: str, contract_name: str | None = None) -> None:
5352
raise Exception("Could not deploy app, .arc32.json file not found")
5453
app_spec_path = output_dir / app_spec_file_name
5554
if contract.deploy:
55+
logger.info(f"Deploying app {contract.name}")
5656
deploy(app_spec_path, contract.deploy)
5757
case "all":
5858
for contract in filtered_contracts:

template_content/smart_contracts/__main__.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def main(action: str, contract_name: str | None = None) -> None:
4242
{%- if deployment_language == 'python' %}
4343
case "deploy":
4444
for contract in filtered_contracts:
45-
logger.info(f"Deploying app {contract.name}")
4645
output_dir = artifact_path / contract.name
4746
app_spec_file_name = next(
4847
(
@@ -56,6 +55,7 @@ def main(action: str, contract_name: str | None = None) -> None:
5655
raise Exception("Could not deploy app, .arc32.json file not found")
5756
app_spec_path = output_dir / app_spec_file_name
5857
if contract.deploy:
58+
logger.info(f"Deploying app {contract.name}")
5959
deploy(app_spec_path, contract.deploy)
6060
case "all":
6161
for contract in filtered_contracts:

0 commit comments

Comments
 (0)