Skip to content

Commit 9d97da1

Browse files
meetmangukiyamfw78
authored andcommitted
chore: use forked factory to create pair instead of artifact deploy
1 parent 5da6c5b commit 9d97da1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/UniswapTrade.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface IUniswapV2Pair {
2727
function swap(uint256, uint256, address, bytes calldata) external;
2828
}
2929

30-
contract UniswapTradeTest is Helper(false) {
30+
contract UniswapTradeTest is Helper(true) {
3131
IERC20Mintable dai;
3232
IERC20Mintable wETH;
3333

@@ -42,7 +42,7 @@ contract UniswapTradeTest is Helper(false) {
4242
dai = deployMintableErc20("dai", "dai");
4343
wETH = deployMintableErc20("wETH", "wETH");
4444

45-
factory = IUniswapV2Factory(_create(abi.encodePacked(_getCode("UniswapV2Factory"), abi.encode(address(0))), 0));
45+
factory = IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f);
4646
uniswapPair = IUniswapV2Pair(factory.createPair(address(wETH), address(dai)));
4747

4848
isWethToken0 = uniswapPair.token0() == address(wETH);

0 commit comments

Comments
 (0)