From 10d21394d52393c7d29c0e5206c294deb2eabfa8 Mon Sep 17 00:00:00 2001 From: Jamie Pickett Date: Mon, 29 Jul 2024 10:04:44 -0400 Subject: [PATCH] edit test with non-zero length data --- .../concrete/handlers-base/AerodromeFlashswapHandler.t.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/fork/concrete/handlers-base/AerodromeFlashswapHandler.t.sol b/test/fork/concrete/handlers-base/AerodromeFlashswapHandler.t.sol index fcc2c83..82ff08a 100644 --- a/test/fork/concrete/handlers-base/AerodromeFlashswapHandler.t.sol +++ b/test/fork/concrete/handlers-base/AerodromeFlashswapHandler.t.sol @@ -193,16 +193,16 @@ abstract contract AerodromeFlashswapHandler_Test is LrtHandler_ForkBase { assertLe(weth.balanceOf(address(_getTypedUFHandler())), roundingError); } - function testFork_RevertWhen_UntrustedCallerCallsFlashswapCallback() external { + function testFork_RevertWhen_HandlerIsNotSwapCaller() external { vm.skip(borrowerWhitelistProof.length > 0); vm.expectRevert( abi.encodeWithSelector(AerodromeFlashswapHandler.SwapOnlyCallableByHandler.selector, address(this)) ); - IPool(AERODROME_POOL).swap(1e18, 0, address(_getTypedUFHandler()), ""); + IPool(BASE_RSETH_WETH_AERODROME).swap(1e18, 0, address(_getTypedUFHandler()), "0x1"); } - function testFork_RevertWhen_otherCallerCallsFlashswapCallback() external { + function testFork_RevertWhen_UntrustedCallerCallsFlashswapCallback() external { vm.skip(borrowerWhitelistProof.length > 0); vm.expectRevert(