Skip to content

Commit

Permalink
chore: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PraneshASP committed Apr 23, 2024
1 parent e0a5065 commit b4a3b94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions contracts/contracts/mocks/MockCCIPRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract MockCCIPRouter {
function ccipSend(
// solhint-disable-next-line no-unused-vars
uint64 destinationChainSelector,
Client.EVM2AnyMessage calldata message
) external payable returns (bytes32) {
Expand Down
6 changes: 4 additions & 2 deletions contracts/contracts/zapper/WOETHCCIPZapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ pragma solidity ^0.8.0;

import { IRouterClient } from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import { Client } from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol";
// solhint-disable-next-line max-line-length
import { IERC20 } from "@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.0/contracts/token/ERC20/IERC20.sol";
import { IERC4626 } from "./../../lib/openzeppelin/interfaces/IERC4626.sol";
import { IOETHZapper } from "./../interfaces/IOETHZapper.sol";

/**
* @title WOETH CCIP Zapper Contract
* @notice Handles logic to easily zap ETH on mainnet to WOETH on L2s like Arbitrum.
* @notice Helps to directly convert ETH on mainnet into WOETH on L2s.
* @author Origin Protocol Inc
*/

Expand Down Expand Up @@ -127,7 +128,8 @@ contract WOETHCCIPZapper {
data: abi.encode(""),
tokenAmounts: tokenAmounts,
extraArgs: Client._argsToBytes(
Client.EVMExtraArgsV1({ gasLimit: 0 }) // See: https://docs.chain.link/ccip/best-practices#setting-gaslimit
// See: https://docs.chain.link/ccip/best-practices#setting-gaslimit
Client.EVMExtraArgsV1({ gasLimit: 0 })
),
feeToken: address(0)
});
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/_fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,7 @@ async function woethCcipZapperFixture() {
fixture.woethZapper = woethZapper;
fixture.mockCcipRouter = mockCcipRouter;

const [deployer, josh, alice] = await ethers.getSigners();
const [josh, alice] = await ethers.getSigners();
await impersonateAndFund(josh.address, "10");

fixture.josh = josh;
Expand Down

0 comments on commit b4a3b94

Please sign in to comment.