Skip to content

Commit

Permalink
Spread out deployment output using newlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Sep 22, 2023
1 parent 0a9d66b commit ee531ec
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions scripts/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@
from ape.api import AccountAPI
from ape.cli import get_user_selected_account
from ape.contracts.base import ContractContainer
from web3.auto.gethdev import w3

from scripts.constants import NULL_ADDRESS
from scripts.utils import (
check_etherscan_plugin,
check_registry_filepath,
check_infura_plugin
)
from scripts.utils import check_etherscan_plugin, check_infura_plugin, check_registry_filepath
from web3.auto.gethdev import w3

VARIABLE_PREFIX = "$"

Expand Down Expand Up @@ -157,11 +152,11 @@ def _confirm_deployment(contract_name: str) -> None:
def _confirm_resolution(resolved_params: OrderedDict, contract_name: str) -> None:
"""Asks the user to confirm the resolved constructor parameters for a single contract."""
if len(resolved_params) == 0:
print(f"(i) No constructor parameters for {contract_name}")
print(f"\n(i) No constructor parameters for {contract_name}")
_confirm_deployment(contract_name)
return

print(f"Constructor parameters for {contract_name}")
print(f"\nConstructor parameters for {contract_name}")
for name, resolved_value in resolved_params.items():
print(f"\t{name}={resolved_value}")
_confirm_deployment(contract_name)
Expand Down

0 comments on commit ee531ec

Please sign in to comment.