From 030505c497cc29bc9f2f2ed6f123d03c4dfe823c Mon Sep 17 00:00:00 2001 From: royvardhan Date: Wed, 26 Feb 2025 23:04:40 +0530 Subject: [PATCH] test: add vm.rollFork with correct block in base network tests --- foundry/test/TychoRouter.t.sol | 3 ++- foundry/test/executors/UniswapV2Executor.t.sol | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/foundry/test/TychoRouter.t.sol b/foundry/test/TychoRouter.t.sol index be68fbc..6033feb 100644 --- a/foundry/test/TychoRouter.t.sol +++ b/foundry/test/TychoRouter.t.sol @@ -980,9 +980,10 @@ contract TychoRouterTest is TychoRouterTestSetup { } // Base Network Tests - // Make sure to set the fork block to 26857267 for base network + // Make sure to set the RPC_URL to base network function testSwapSingleBase() public { vm.skip(true); + vm.rollFork(26857267); uint256 amountIn = 10 * 10 ** 6; deal(BASE_USDC, tychoRouterAddr, amountIn); diff --git a/foundry/test/executors/UniswapV2Executor.t.sol b/foundry/test/executors/UniswapV2Executor.t.sol index d905802..0b4d705 100644 --- a/foundry/test/executors/UniswapV2Executor.t.sol +++ b/foundry/test/executors/UniswapV2Executor.t.sol @@ -158,9 +158,10 @@ contract UniswapV2ExecutorTest is UniswapV2ExecutorExposed, Test, Constants { } // Base Network Tests - // Make sure to set the fork block to 26857267 for base network + // Make sure to set the RPC_URL to base network function testSwapBaseNetwork() public { vm.skip(true); + vm.rollFork(26857267); uint256 amountIn = 10 * 10 ** 6; bool zeroForOne = true; bytes memory protocolData =