Skip to content

Commit

Permalink
remove if
Browse files Browse the repository at this point in the history
  • Loading branch information
ZumZoom committed Aug 30, 2024
1 parent 14bd53c commit 23d90cf
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions test/utils/BaseSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ contract BaseSetup is Test, Utils {
alice = users[0];
bob = users[1];
charlie = users[2];
if (true) {
vm.label(alice.addr, "Alice");
vm.label(bob.addr, "Bob");
vm.label(charlie.addr, "Charlie");
}
vm.label(alice.addr, "Alice");
vm.label(bob.addr, "Bob");
vm.label(charlie.addr, "Charlie");

resolvers = new address[](1);
resolvers[0] = bob.addr;
Expand Down Expand Up @@ -115,12 +113,10 @@ contract BaseSetup is Test, Utils {
inch = new TokenMock("1INCH", "1INCH");
accessToken = new TokenMock("ACCESS", "ACCESS");

if (true) {
vm.label(address(dai), "DAI");
vm.label(address(usdc), "USDC");
vm.label(address(inch), "1INCH");
vm.label(address(accessToken), "ACCESS");
}
vm.label(address(dai), "DAI");
vm.label(address(usdc), "USDC");
vm.label(address(inch), "1INCH");
vm.label(address(accessToken), "ACCESS");
}

function _deployContracts() internal {
Expand All @@ -138,12 +134,10 @@ contract BaseSetup is Test, Utils {

feeBank = IFeeBank(escrowFactory.FEE_BANK());

if (true) {
vm.label(address(escrowFactory), "EscrowFactory");
vm.label(address(escrowSrc), "EscrowSrc");
vm.label(address(escrowDst), "EscrowDst");
vm.label(address(feeBank), "FeeBank");
}
vm.label(address(escrowFactory), "EscrowFactory");
vm.label(address(escrowSrc), "EscrowSrc");
vm.label(address(escrowDst), "EscrowDst");
vm.label(address(feeBank), "FeeBank");
}

function _prepareDataSrc(bool fakeOrder, bool allowMultipleFills) internal returns(CrossChainTestLib.SwapData memory) {
Expand Down

0 comments on commit 23d90cf

Please sign in to comment.