From a885624ec14425aa28751c61e88661c77e464f27 Mon Sep 17 00:00:00 2001 From: gotzenx <78360669+gotzenx@users.noreply.github.com> Date: Mon, 21 Aug 2023 15:01:51 +0100 Subject: [PATCH] fix: update admin hub connector test --- .../messaging/connectors/admin/AdminHubConnector.t.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/deployments/contracts/contracts_forge/messaging/connectors/admin/AdminHubConnector.t.sol b/packages/deployments/contracts/contracts_forge/messaging/connectors/admin/AdminHubConnector.t.sol index bcd3d731dc..0a6c912471 100644 --- a/packages/deployments/contracts/contracts_forge/messaging/connectors/admin/AdminHubConnector.t.sol +++ b/packages/deployments/contracts/contracts_forge/messaging/connectors/admin/AdminHubConnector.t.sol @@ -50,7 +50,7 @@ contract AdminHubConnectorTest is ForgeHelper { // deploy root manager vm.prank(owner); - rootManager = new RootManager(0, address(merkleTreeManager), address(manager)); + rootManager = new RootManager(0, address(merkleTreeManager), address(manager), 0, 0); vm.prank(address(rootManager)); merkleTreeManager.initialize(address(rootManager)); @@ -148,6 +148,10 @@ contract AdminHubConnectorTest is ForgeHelper { vm.expectEmit(true, true, true, true, address(adminHubConnector)); emit MessageProcessed(abi.encode(_rootToInsert), owner); + // activate slow mode to be able to call aggregate on RootManager + vm.prank(watcher); + rootManager.activateSlowMode(); + vm.prank(owner); adminHubConnector.addSpokeRootToAggregate(_rootToInsert);