Skip to content

Commit

Permalink
chore: use forked factory to create pair instead of artifact deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
meetmangukiya authored and mfw78 committed Oct 7, 2024
1 parent 5da6c5b commit 9d97da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/UniswapTrade.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface IUniswapV2Pair {
function swap(uint256, uint256, address, bytes calldata) external;
}

contract UniswapTradeTest is Helper(false) {
contract UniswapTradeTest is Helper(true) {
IERC20Mintable dai;
IERC20Mintable wETH;

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

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

isWethToken0 = uniswapPair.token0() == address(wETH);
Expand Down

0 comments on commit 9d97da1

Please sign in to comment.