Skip to content

Commit

Permalink
Allow Deployer to expose constants defined in constructor parameters …
Browse files Browse the repository at this point in the history
…file.
  • Loading branch information
derekpierre committed Nov 20, 2023
1 parent 2c8cb06 commit 45ea900
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deployment/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
from ape.cli import get_user_selected_account
from ape.contracts.base import ContractContainer, ContractInstance, ContractTransactionHandler
from ape.utils import ZERO_ADDRESS
from eth_typing import ChecksumAddress
from ethpm_types import MethodABI
from web3.auto import w3

from deployment.confirm import _confirm_resolution, _continue
from deployment.constants import OZ_DEPENDENCY
from deployment.registry import registry_from_ape_deployments
Expand All @@ -19,9 +23,6 @@
validate_config,
verify_contracts,
)
from eth_typing import ChecksumAddress
from ethpm_types import MethodABI
from web3.auto import w3

CONTRACT_CONSTRUCTOR_PARAMETER_KEY = "constructor"
CONTRACT_PROXY_PARAMETER_KEY = "proxy"
Expand Down Expand Up @@ -524,6 +525,7 @@ def __init__(
check_plugins()
self.path = path
self.config = config
self.constants = self.config.get("constants") or dict()
self.registry_filepath = validate_config(config=self.config)
self.constructor_parameters = ConstructorParameters.from_config(self.config)
self.proxy_parameters = ProxyParameters.from_config(self.config)
Expand Down

0 comments on commit 45ea900

Please sign in to comment.