Skip to content

Commit d872fd5

Browse files
committed
chore: update mock to use IOFT instead of IERC20
1 parent 71f6f8d commit d872fd5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/oft-composer-library/test/mocks/SwapRouterMock.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ contract SwapRouterMock is ISwapRouter {
3535

3636
/**
3737
* @notice Initializes the SwapRouterMock with predefined tokens and amountOut.
38-
* @param _tokenIn The ERC20 token address being swapped from.
38+
* @param _oftIn The OFT address being swapped from.
3939
* @param _tokenOut The ERC20 token address being swapped to.
4040
* @param _predefinedAmountOut The amount of tokenOut to return on swaps.
4141
*/
42-
constructor(address _tokenIn, address _tokenOut, uint256 _predefinedAmountOut) {
43-
tokenIn = IERC20(IOFT(_tokenIn).token());
42+
constructor(address _oftIn, address _tokenOut, uint256 _predefinedAmountOut) {
43+
tokenIn = IERC20(IOFT(_oftIn).token());
4444
tokenOut = ERC20Mock(_tokenOut);
4545
predefinedAmountOut = _predefinedAmountOut;
4646
}

0 commit comments

Comments
 (0)