From d5d6e37041c316c460a3cf216c71eae1987a953f Mon Sep 17 00:00:00 2001 From: TAMARA LIPOWSKI Date: Tue, 22 Apr 2025 17:50:09 -0400 Subject: [PATCH] fix: Changes after rebase --- foundry/src/executors/UniswapV2Executor.sol | 9 ++++++--- foundry/test/executors/UniswapV2Executor.t.sol | 13 ++++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/foundry/src/executors/UniswapV2Executor.sol b/foundry/src/executors/UniswapV2Executor.sol index 518b761..dd04dd1 100644 --- a/foundry/src/executors/UniswapV2Executor.sol +++ b/foundry/src/executors/UniswapV2Executor.sol @@ -20,9 +20,12 @@ contract UniswapV2Executor is IExecutor, TokenTransfer { address private immutable self; uint256 public immutable feeBps; - constructor(address _factory, bytes32 _initCode, address _permit2, uint256 _feeBps) - TokenTransfer(_permit2) - { + constructor( + address _factory, + bytes32 _initCode, + address _permit2, + uint256 _feeBps + ) TokenTransfer(_permit2) { if (_factory == address(0)) { revert UniswapV2Executor__InvalidFactory(); } diff --git a/foundry/test/executors/UniswapV2Executor.t.sol b/foundry/test/executors/UniswapV2Executor.t.sol index 70f16c8..ea0d825 100644 --- a/foundry/test/executors/UniswapV2Executor.t.sol +++ b/foundry/test/executors/UniswapV2Executor.t.sol @@ -8,9 +8,12 @@ import {Constants} from "../Constants.sol"; import {Permit2TestHelper} from "../Permit2TestHelper.sol"; contract UniswapV2ExecutorExposed is UniswapV2Executor { - constructor(address _factory, bytes32 _initCode, address _permit2, uint256 _feeBps) - UniswapV2Executor(_factory, _initCode, _permit2, _feeBps) - {} + constructor( + address _factory, + bytes32 _initCode, + address _permit2, + uint256 _feeBps + ) UniswapV2Executor(_factory, _initCode, _permit2, _feeBps) {} function decodeParams(bytes calldata data) external @@ -69,13 +72,13 @@ contract UniswapV2ExecutorTest is Test, Constants, Permit2TestHelper { SUSHISWAPV2_FACTORY_ETHEREUM, SUSHIV2_POOL_CODE_INIT_HASH, PERMIT2_ADDRESS, - 30 + 30 ); pancakeswapV2Exposed = new UniswapV2ExecutorExposed( PANCAKESWAPV2_FACTORY_ETHEREUM, PANCAKEV2_POOL_CODE_INIT_HASH, PERMIT2_ADDRESS, - 25 + 25 ); permit2 = IAllowanceTransfer(PERMIT2_ADDRESS); }