Skip to content

Commit a9918c6

Browse files
committed
format
1 parent 66b9090 commit a9918c6

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

test/unit/CowWrapper.t.sol

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ contract CowWrapperTest is Test {
2323
// Deploy mock contracts
2424
authenticator = new MockCowAuthentication();
2525
mockSettlement = new MockCowSettlement(address(authenticator));
26-
helpers =
27-
new CowWrapperHelpers(ICowAuthentication(address(authenticator)), ICowAuthentication(address(authenticator)));
26+
helpers = new CowWrapperHelpers(
27+
ICowAuthentication(address(authenticator)), ICowAuthentication(address(authenticator))
28+
);
2829

2930
solver = makeAddr("solver");
3031
// Add solver to the authenticator
@@ -42,7 +43,12 @@ contract CowWrapperTest is Test {
4243
}
4344

4445
function _emptyInteractions() private pure returns (ICowSettlement.Interaction[][3] memory) {
45-
return [new ICowSettlement.Interaction[](0), new ICowSettlement.Interaction[](0), new ICowSettlement.Interaction[](0)];
46+
return
47+
[
48+
new ICowSettlement.Interaction[](0),
49+
new ICowSettlement.Interaction[](0),
50+
new ICowSettlement.Interaction[](0)
51+
];
4652
}
4753

4854
function _createSimpleSettleData(uint256 tokenCount) private returns (bytes memory) {
@@ -120,7 +126,8 @@ contract CowWrapperTest is Test {
120126
signature: hex"aabbccddee"
121127
});
122128

123-
bytes memory settleData = abi.encodeCall(ICowSettlement.settle, (tokens, clearingPrices, trades, _emptyInteractions()));
129+
bytes memory settleData =
130+
abi.encodeCall(ICowSettlement.settle, (tokens, clearingPrices, trades, _emptyInteractions()));
124131

125132
// Build the chained wrapper data:
126133
// solver -> wrapper1 -> wrapper2 -> wrapper1 -> wrapper3 -> mockSettlement

test/unit/CowWrapperHelpers.t.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ contract CowWrapperHelpersTest is Test {
2020
function setUp() public {
2121
wrapperAuth = new MockCowAuthentication();
2222
solverAuth = new MockCowAuthentication();
23-
helpers = new CowWrapperHelpers(ICowAuthentication(address(wrapperAuth)), ICowAuthentication(address(solverAuth)));
23+
helpers =
24+
new CowWrapperHelpers(ICowAuthentication(address(wrapperAuth)), ICowAuthentication(address(solverAuth)));
2425

2526
mockSettlement = new MockCowSettlement(address(wrapperAuth));
2627

0 commit comments

Comments
 (0)