Skip to content

Commit

Permalink
fix solidity warning
Browse files Browse the repository at this point in the history
This patch fixes following warning:
```
Warning: Unused local variable.
   --> /home/oleg/Projects/toy-cluster/uniswap/contracts/UniswapV2Router01.sol:200:24:
    |
200 |         (bool success, bytes memory result) = smartCall(
    |
```
  • Loading branch information
olegrok committed Dec 3, 2024
1 parent e98789d commit 9a418c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/UniswapV2Router01.sol
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ contract UniswapV2Router01 is IUniswapV2Router01, NilCurrencyBase {
);
uint amount0Out = tokens[0].id == token0Id ? 0 : amount;
uint amount1Out = tokens[0].id != token0Id ? 0 : amount;
(bool success, bytes memory result) = smartCall(
(bool success,) = smartCall(
pair,
tokens,
abi.encodeWithSignature(
Expand Down

0 comments on commit 9a418c0

Please sign in to comment.