Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgcyx committed Mar 6, 2024
1 parent 23b96bf commit 7071c46
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/invariant/InvariantBridge.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,6 @@ contract InvariantBridge is Test {
rootIMXToken.initialize(address(123), "Immutable X", "IMX", 18);
WETH wETH = new WETH();

// Deploy contracts on reset chain.
vm.selectFork(resetId);
vm.startPrank(ADMIN);
ChildERC20 resetTokenTemplate = new ChildERC20();
resetTokenTemplate.initialize(address(123), "Test", "TST", 18);
new MockAdaptor();
vm.stopPrank();

// Configure contracts on child chain.
vm.selectFork(childId);
childAdaptor.initialize(rootId, address(childBridge));
Expand Down Expand Up @@ -169,16 +161,6 @@ contract InvariantBridge is Test {
);
vm.stopPrank();

vm.selectFork(resetId);
vm.startPrank(ADMIN);
new ChildHelper(payable(childBridge));
new RootHelper(ADMIN, payable(rootBridge));
new ChildERC20BridgeHandler(childId, rootId, users, rootTokens, address(childHelper), address(rootHelper));
new RootERC20BridgeFlowRateHandler(
childId, rootId, users, rootTokens, address(childHelper), address(rootHelper)
);
vm.stopPrank();

// Map tokens
vm.selectFork(rootId);
for (uint256 i = 0; i < NO_OF_TOKENS; i++) {
Expand Down Expand Up @@ -343,7 +325,6 @@ contract InvariantBridge is Test {

assertEq(balanceL1 + balanceL2, MAX_AMOUNT);
}
vm.selectFork(resetId);
}

/// forge-config: default.invariant.runs = 256
Expand Down

0 comments on commit 7071c46

Please sign in to comment.