Skip to content

Commit 1bd7ef4

Browse files
committed
tests passing
1 parent ccd6196 commit 1bd7ef4

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/test/integration/IntegrationDeployer.t.sol

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,7 @@ abstract contract IntegrationDeployer is ExistingDeploymentParser {
316316
allocationManager =
317317
IAllocationManager(address(new TransparentUpgradeableProxy(address(emptyContract), address(eigenLayerProxyAdmin), "")));
318318
}
319-
if (address(allocationManagerView) == address(0)) {
320-
allocationManagerView =
321-
IAllocationManagerView(address(new TransparentUpgradeableProxy(address(emptyContract), address(eigenLayerProxyAdmin), "")));
322-
}
319+
// allocationManagerView is deployed as a standalone implementation (not a proxy) in _deployImplementations()
323320
if (address(permissionController) == address(0)) {
324321
permissionController =
325322
PermissionController(address(new TransparentUpgradeableProxy(address(emptyContract), address(eigenLayerProxyAdmin), "")));
@@ -334,7 +331,11 @@ abstract contract IntegrationDeployer is ExistingDeploymentParser {
334331

335332
/// Deploy an implementation contract for each contract in the system
336333
function _deployImplementations() public {
337-
require(address(allocationManagerView) != address(0), "AllocationManagerView not deployed");
334+
// Deploy AllocationManagerView as a standalone implementation (not a proxy)
335+
allocationManagerView =
336+
new AllocationManagerView(delegationManager, eigenStrategy, DEALLOCATION_DELAY, ALLOCATION_CONFIGURATION_DELAY);
337+
allocationManagerViewImplementation = allocationManagerView;
338+
338339
allocationManagerImplementation = IAllocationManager(
339340
address(
340341
new AllocationManager(
@@ -349,8 +350,6 @@ abstract contract IntegrationDeployer is ExistingDeploymentParser {
349350
)
350351
)
351352
);
352-
allocationManagerViewImplementation =
353-
new AllocationManagerView(delegationManager, eigenStrategy, DEALLOCATION_DELAY, ALLOCATION_CONFIGURATION_DELAY);
354353
permissionControllerImplementation = new PermissionController(version);
355354
delegationManagerImplementation = new DelegationManager(
356355
strategyManager,
@@ -421,11 +420,8 @@ abstract contract IntegrationDeployer is ExistingDeploymentParser {
421420
eigenLayerProxyAdmin.upgrade(
422421
ITransparentUpgradeableProxy(payable(address(allocationManager))), address(allocationManagerImplementation)
423422
);
424-
425-
// AllocationManagerView
426-
eigenLayerProxyAdmin.upgrade(
427-
ITransparentUpgradeableProxy(payable(address(allocationManagerView))), address(allocationManagerViewImplementation)
428-
);
423+
424+
// AllocationManagerView is not a proxy, so no upgrade needed
429425

430426
// PermissionController
431427
eigenLayerProxyAdmin.upgrade(

0 commit comments

Comments
 (0)