From efe649de92fbdec4b275f4126c1f6f864d9d590a Mon Sep 17 00:00:00 2001 From: derekpierre Date: Thu, 2 Nov 2023 16:07:46 -0400 Subject: [PATCH] Update root.yml for `lynx` and `tapir` to use $encode variable funtionality for calling empty initialize on TACoApplication contract. Remove call to transact in deploy_root scripts for `lynx` and `tapir` since the proxy now takes care of calling initialize. --- deployment/constructor_params/lynx/root.yml | 2 ++ deployment/constructor_params/tapir/root.yml | 2 ++ scripts/lynx/deploy_root.py | 2 -- scripts/tapir/deploy_root.py | 2 -- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment/constructor_params/lynx/root.yml b/deployment/constructor_params/lynx/root.yml index 94f31b38..12c32745 100644 --- a/deployment/constructor_params/lynx/root.yml +++ b/deployment/constructor_params/lynx/root.yml @@ -22,6 +22,8 @@ contracts: - TestnetThresholdStaking - TACoApplication: proxy: + constructor: + _data: $encode:initialize constructor: _token: $LynxStakingToken _tStaking: $TestnetThresholdStaking diff --git a/deployment/constructor_params/tapir/root.yml b/deployment/constructor_params/tapir/root.yml index 15112c3e..f336ecb2 100644 --- a/deployment/constructor_params/tapir/root.yml +++ b/deployment/constructor_params/tapir/root.yml @@ -22,6 +22,8 @@ contracts: - TestnetThresholdStaking - TACoApplication: proxy: + constructor: + _data: $encode:initialize constructor: _token: $TapirStakingToken _tStaking: $TestnetThresholdStaking diff --git a/scripts/lynx/deploy_root.py b/scripts/lynx/deploy_root.py index 642accf1..379410d9 100644 --- a/scripts/lynx/deploy_root.py +++ b/scripts/lynx/deploy_root.py @@ -31,8 +31,6 @@ def main(): deployer.transact(mock_threshold_staking.setApplication, taco_application.address) - deployer.transact(taco_application.initialize) - mock_polygon_root = deployer.deploy(project.MockPolygonRoot) deployer.transact(taco_application.setChildApplication, mock_polygon_root.address) diff --git a/scripts/tapir/deploy_root.py b/scripts/tapir/deploy_root.py index afa5d17b..5d362404 100644 --- a/scripts/tapir/deploy_root.py +++ b/scripts/tapir/deploy_root.py @@ -31,8 +31,6 @@ def main(): deployer.transact(mock_threshold_staking.setApplication, taco_application.address) - deployer.transact(taco_application.initialize) - mock_polygon_root = deployer.deploy(project.MockPolygonRoot) deployer.transact(taco_application.setChildApplication, mock_polygon_root.address)