Skip to content

Commit

Permalink
Remove unused return value
Browse files Browse the repository at this point in the history
  • Loading branch information
fedgiac committed Jan 30, 2024
1 parent 82d73ec commit 1b0119b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ConstantProduct/ConstantProductTestHarness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ abstract contract ConstantProductTestHarness is BaseComposableCoWTest {
constantProduct = new ConstantProduct();
}

function setUpDefaultPair() internal returns (IUniswapV2Pair pair) {
function setUpDefaultPair() internal {
vm.mockCall(DEFAULT_PAIR, abi.encodeWithSelector(IUniswapV2Pair.token0.selector), abi.encode(USDC));
vm.mockCall(DEFAULT_PAIR, abi.encodeWithSelector(IUniswapV2Pair.token1.selector), abi.encode(WETH));
// Reverts for everything else
vm.mockCallRevert(DEFAULT_PAIR, hex"", abi.encode("Called unexpected function on mock pair"));
pair = IUniswapV2Pair(DEFAULT_PAIR);
IUniswapV2Pair pair = IUniswapV2Pair(DEFAULT_PAIR);
require(pair.token0() != pair.token1(), "Pair setup failed: should use distinct tokens");
}

Expand Down

0 comments on commit 1b0119b

Please sign in to comment.