Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Derek Pierre <[email protected]>
  • Loading branch information
vzotova and derekpierre committed Aug 22, 2024
1 parent c3ec58f commit 20b6456
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ def _deploy_proxy(

def upgrade(self, container: ContractContainer, proxy_address, data=b"") -> ContractInstance:
implementation = self.deploy(container)
# TODO: initialize taco app implementation too
return self.upgradeTo(implementation, proxy_address, data)
# upgrade proxy to implementation
return self.upgradeProxyTo(implementation, proxy_address, data)

def upgradeTo(
self, implementation: ContractInstance, proxy_address, data=b""
Expand Down
2 changes: 2 additions & 0 deletions scripts/lynx/upgrade_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def main():
instances = contracts_from_registry(filepath=ARTIFACTS_DIR / "lynx.json", chain_id=80002)

implementation = deployer.deploy(project.Coordinator)
# `initializeNumberOfRituals` was used for the original upgrade, but should NOT be
# used for subsequent upgrades of Coordinator
# encoded_initializer_function = implementation.initializeNumberOfRituals.encode_input()
encoded_initializer_function = b""
coordinator = deployer.upgradeTo(
Expand Down

0 comments on commit 20b6456

Please sign in to comment.