Skip to content

Commit

Permalink
remove console from contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
thal0x committed Sep 6, 2024
1 parent 7af6da6 commit 701cca0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 2 additions & 5 deletions AxelarHandler/src/AxelarHandler.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.18;

import {console} from "forge-std/console.sol";

import {IWETH} from "./interfaces/IWETH.sol";

import {IAxelarGasService} from "lib/axelar-gmp-sdk-solidity/contracts/interfaces/IAxelarGasService.sol";
Expand Down Expand Up @@ -390,7 +388,7 @@ contract AxelarHandler is AxelarExecutableUpgradeable, Ownable2StepUpgradeable,
try SkipSwapRouter.swap(swapRouter, destination, tokenIn, amount, swap) returns (
IERC20 tokenOut, uint256 amountOut
) {
if(unwrapOut) {
if (unwrapOut) {
_sendNative(address(tokenOut), amountOut, destination);
} else {
_sendToken(address(tokenOut), amountOut, destination);
Expand All @@ -400,12 +398,11 @@ contract AxelarHandler is AxelarExecutableUpgradeable, Ownable2StepUpgradeable,
}
} else if (command == Commands.MultiSwap) {
(address destination, bool unwrapOut, bytes[] memory swaps) = abi.decode(data, (address, bool, bytes[]));
console.log("debug");

try SkipSwapRouter.multiSwap(swapRouter, destination, tokenIn, amount, swaps) returns (
IERC20 tokenOut, uint256 amountOut
) {
if(unwrapOut) {
if (unwrapOut) {
_sendNative(address(tokenOut), amountOut, destination);
} else {
_sendToken(address(tokenOut), amountOut, destination);
Expand Down
2 changes: 0 additions & 2 deletions AxelarHandler/src/libraries/SkipSwapRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {IWETH} from "../interfaces/IWETH.sol";
import {ISwapRouter02} from "../interfaces/ISwapRouter02.sol";
import {BytesLib, Path} from "./Path.sol";

import {console} from "forge-std/Test.sol";

pragma solidity >= 0.8.18;

library SkipSwapRouter {
Expand Down

0 comments on commit 701cca0

Please sign in to comment.