Skip to content

Commit

Permalink
Update root.yml for lynx and tapir to use $encode variable funtio…
Browse files Browse the repository at this point in the history
…nality 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.
  • Loading branch information
derekpierre committed Nov 2, 2023
1 parent 00a0b6f commit efe649d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions deployment/constructor_params/lynx/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ contracts:
- TestnetThresholdStaking
- TACoApplication:
proxy:
constructor:
_data: $encode:initialize
constructor:
_token: $LynxStakingToken
_tStaking: $TestnetThresholdStaking
Expand Down
2 changes: 2 additions & 0 deletions deployment/constructor_params/tapir/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ contracts:
- TestnetThresholdStaking
- TACoApplication:
proxy:
constructor:
_data: $encode:initialize
constructor:
_token: $TapirStakingToken
_tStaking: $TestnetThresholdStaking
Expand Down
2 changes: 0 additions & 2 deletions scripts/lynx/deploy_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 0 additions & 2 deletions scripts/tapir/deploy_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit efe649d

Please sign in to comment.