Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
update tests to accomodate the change from GatewayRouterFacet to Cros…
Browse files Browse the repository at this point in the history
…sMessageApplicationFacet, DiamondCutFacet, GatewayMessengerFacet, DiamondLoupeFacet
  • Loading branch information
snissn committed Dec 20, 2023
1 parent d33e7c4 commit 68de852
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 101 deletions.
9 changes: 4 additions & 5 deletions test/IntegrationTestBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ contract IntegrationTestBase is Test, TestParams, TestRegistry, TestSubnetActor,

gwDiamondCut[8] = (
IDiamond.FacetCut({
facetAddress: address(MessageBatchManagementFacet),
facetAddress: address(messageBatchManagementFacet),
action: IDiamond.FacetCutAction.Add,
functionSelectors: gwMessageBatchManagementFacetSelectors
})
Expand Down Expand Up @@ -586,7 +586,7 @@ contract IntegrationTestBase is Test, TestParams, TestRegistry, TestSubnetActor,
ParentFinality memory finality = ParentFinality({height: block.number, blockHash: bytes32(0)});

vm.prank(FilAddress.SYSTEM_ACTOR);
gwRouter.commitParentFinality(finality);
gwFinalityManagementFacet.commitParentFinality(finality);
}

function setupWhiteListMethod(address caller, address src) public returns (bytes32) {
Expand Down Expand Up @@ -618,7 +618,7 @@ contract IntegrationTestBase is Test, TestParams, TestRegistry, TestSubnetActor,
// addValidator(caller, 1000);

vm.prank(FilAddress.SYSTEM_ACTOR);
gwRouter.applyCrossMessages(msgs);
gwCrossMessageApplicationFacet.applyCrossMessages(msgs);

return crossMsg.toHash();
}
Expand All @@ -638,7 +638,7 @@ contract IntegrationTestBase is Test, TestParams, TestRegistry, TestSubnetActor,
// uint64 n = gwGetter.getLastConfigurationNumber() + 1;

vm.startPrank(FilAddress.SYSTEM_ACTOR);
gwRouter.commitParentFinality(finality);
gwFinalityManagementFacet.commitParentFinality(finality);
vm.stopPrank();
}

Expand Down Expand Up @@ -804,7 +804,6 @@ contract IntegrationTestBase is Test, TestParams, TestRegistry, TestSubnetActor,
address subnetAddress,
GatewayDiamond gw
) public returns (SubnetID memory, uint256, uint256, uint256, uint256, Status) {
gwRouter = GatewayRouterFacet(address(gw));
gwManager = GatewayManagerFacet(address(gw));
gwGetter = GatewayGetterFacet(address(gw));

Expand Down
Loading

0 comments on commit 68de852

Please sign in to comment.