Skip to content

Commit

Permalink
Fix Placeholder naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Sep 21, 2023
1 parent 5725e1e commit 211dfa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _validate_constructor_abi_inputs(
if _is_variable(value):
# at the moment only contract addresses are variables
# won't know address until deployment; use a placeholder
context = defaultdict(lambda: PLACEHOLDER_CONTRACT_CONTAINER)
context = defaultdict(lambda: PLACEHOLDER_CONTRACT_INSTANCE)
if isinstance(value, list):
value_to_validate = _resolve_list(value, context)
else:
Expand Down Expand Up @@ -161,11 +161,11 @@ def _confirm_resolution(resolved_params: OrderedDict, contract_name: str) -> Non
_confirm_deployment(contract_name)


class PlaceholderContractContainer(typing.NamedTuple):
class PlaceholderContractInstance(typing.NamedTuple):
address: str = NULL_ADDRESS


PLACEHOLDER_CONTRACT_CONTAINER = PlaceholderContractContainer()
PLACEHOLDER_CONTRACT_INSTANCE = PlaceholderContractInstance()


class ConstructorParameters:
Expand Down

0 comments on commit 211dfa9

Please sign in to comment.