Skip to content

Commit

Permalink
clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongeric committed Nov 15, 2023
1 parent 5686447 commit 83ad94d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/integration/RelayOrderReactorIntegration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ contract RelayOrderReactorIntegrationTest is GasSnapshot, Test, PermitSignature

bytes[] memory actions = new bytes[](1);
// calldata same as testExecute but recipient is 0xdeadbeef. We don't use address zero for this test since some tokens block transfer to it explicitly
bytes memory DAI_USDC_UR_CALLDATA =
bytes memory DAI_USDC_UR_CALLDATA_NON_REACTOR_RECIPIENT =
hex"24856bc3000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000deadbeef0000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000000000000000000000000000000000000005adccc500000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b6b175474e89094c44da98b954eedeac495271d0f000064a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000";
actions[0] = abi.encode(ActionType.UniversalRouter, DAI_USDC_UR_CALLDATA);
actions[0] = abi.encode(ActionType.UniversalRouter, DAI_USDC_UR_CALLDATA_NON_REACTOR_RECIPIENT);

RelayOrder memory order = RelayOrder({
info: OrderInfoBuilder.init(address(reactor)).withSwapper(swapper).withDeadline(block.timestamp + 100),
Expand All @@ -241,8 +241,6 @@ contract RelayOrderReactorIntegrationTest is GasSnapshot, Test, PermitSignature
SignedOrder memory signedOrder =
SignedOrder(abi.encode(order), signOrder(swapperPrivateKey, address(PERMIT2), order));

uint256 routerDaiBalanceBefore = DAI.balanceOf(UNIVERSAL_ROUTER);

vm.prank(filler);
vm.expectRevert(CurrencyLibrary.InsufficientBalance.selector);
reactor.execute(signedOrder);
Expand Down

0 comments on commit 83ad94d

Please sign in to comment.