Skip to content

Commit

Permalink
fix: middleware script (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0aa0 authored Feb 1, 2024
1 parent 7257364 commit 0d1008b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/middleware/DeployOpenEigenLayer.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,12 @@ contract DeployOpenEigenLayer is Script, Test {
delayedWithdrawalRouterImplementation = new DelayedWithdrawalRouter(eigenPodManager);

// Third, upgrade the proxy contracts to use the correct implementation contracts and initialize them.
IStrategy[] memory _strategies;
uint256[] memory _withdrawalDelayBlocks;
eigenLayerProxyAdmin.upgradeAndCall(
TransparentUpgradeableProxy(payable(address(delegation))),
address(delegationImplementation),
abi.encodeWithSelector(DelegationManager.initialize.selector, executorMultisig, eigenLayerPauserReg, 0, 0 /* withdrawalDelayBlocks */)
abi.encodeWithSelector(DelegationManager.initialize.selector, executorMultisig, eigenLayerPauserReg, 0, 0, _strategies, _withdrawalDelayBlocks)
);
eigenLayerProxyAdmin.upgradeAndCall(
TransparentUpgradeableProxy(payable(address(avsDirectory))),
Expand Down

0 comments on commit 0d1008b

Please sign in to comment.