chore: remove redundant data from _decodeData
This commit is contained in:
@@ -13,14 +13,9 @@ contract UniswapV4ExecutorExposed is UniswapV4Executor {
|
||||
external
|
||||
pure
|
||||
returns (
|
||||
address tokenIn,
|
||||
address tokenOut,
|
||||
uint24 fee,
|
||||
address receiver,
|
||||
bool zeroForOne,
|
||||
uint24 tickSpacing,
|
||||
bool isExactInput,
|
||||
bool isSingle,
|
||||
uint256 amount
|
||||
)
|
||||
{
|
||||
@@ -58,26 +53,12 @@ contract UniswapV4ExecutorTest is Test, Constants {
|
||||
expectedAmount
|
||||
);
|
||||
|
||||
(
|
||||
address tokenIn,
|
||||
address tokenOut,
|
||||
uint24 fee,
|
||||
address receiver,
|
||||
bool zeroForOne,
|
||||
uint24 tickSpacing,
|
||||
bool isExactInput,
|
||||
bool isSingle,
|
||||
uint256 amount
|
||||
) = uniswapV4Exposed.decodeData(data);
|
||||
(address tokenOut, address receiver, bool isExactInput, uint256 amount)
|
||||
= uniswapV4Exposed.decodeData(data);
|
||||
|
||||
assertEq(tokenIn, USDE_ADDR);
|
||||
assertEq(tokenOut, USDT_ADDR);
|
||||
assertEq(fee, expectedPoolFee);
|
||||
assertEq(receiver, expectedReceiver);
|
||||
assertEq(zeroForOne, false);
|
||||
assertEq(tickSpacing, 1);
|
||||
assertTrue(isExactInput);
|
||||
assertTrue(isSingle);
|
||||
assertEq(amount, expectedAmount);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user