Skip to content

Commit

Permalink
edit test with non-zero length data
Browse files Browse the repository at this point in the history
  • Loading branch information
jpick713 committed Jul 29, 2024
1 parent a77801c commit 10d2139
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 10d2139

Please sign in to comment.