Touch ups.

pull/1314/head
Kieran Prasch 2019-09-16 20:00:10 -07:00
parent 6bdf968a61
commit a48a8652ec
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
1 changed files with 7 additions and 7 deletions

View File

@ -238,14 +238,14 @@ class UpgradeableContractDeployer(BaseContractDeployer):
# TODO: Fails when this same object was used previously to deploy # TODO: Fails when this same object was used previously to deploy
self.check_deployment_readiness() self.check_deployment_readiness()
existing_bare_contract = self.blockchain.get_contract_by_name(registry=self.registry, # Get Bare Contracts
name=self.contract_name, existing_bare_contract = self.get_latest_version(registry=self.registry,
proxy_name=self._proxy_deployer.contract_name, provider_uri=self.blockchain.provider_uri)
use_proxy_address=False)
proxy_deployer = self._proxy_deployer(registry=self.registry, proxy_deployer = self._proxy_deployer(registry=self.registry,
target_contract=existing_bare_contract, target_contract=existing_bare_contract,
deployer_address=self.deployer_address, deployer_address=self.deployer_address,
bare=True) # acquire agency for the dispatcher itself. bare=True) # acquire agency for the dispatcher itself.
# 2 - Deploy new version # # 2 - Deploy new version #
new_contract, deploy_receipt = self._deploy_essential(gas_limit=gas_limit) new_contract, deploy_receipt = self._deploy_essential(gas_limit=gas_limit)