test: add vm.rollFork with correct block in base network tests

This commit is contained in:
royvardhan
2025-02-26 23:04:40 +05:30
parent ed2bc414d8
commit 030505c497
2 changed files with 4 additions and 2 deletions

View File

@@ -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);

View File

@@ -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 =