From 1058abffd5002288148481a77716d9bac641fb41 Mon Sep 17 00:00:00 2001 From: Alessandro Manfredi Date: Tue, 24 Sep 2024 19:03:55 +0200 Subject: [PATCH] refactor(evm): rm some warnings within LayerZeroAdapter --- .../contracts/adapters/LayerZero/LayerZeroAdapter.sol | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/evm/contracts/adapters/LayerZero/LayerZeroAdapter.sol b/packages/evm/contracts/adapters/LayerZero/LayerZeroAdapter.sol index 280fcefb..7ad79ebf 100644 --- a/packages/evm/contracts/adapters/LayerZero/LayerZeroAdapter.sol +++ b/packages/evm/contracts/adapters/LayerZero/LayerZeroAdapter.sol @@ -2,10 +2,10 @@ pragma solidity ^0.8.20; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; -import { ILayerZeroReceiver } from "./interfaces/ILayerZeroReceiver.sol"; -import { Origin } from "./interfaces/ILayerZeroEndpointV2.sol"; import { OAppCore } from "@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OAppCore.sol"; import { BlockHashAdapter } from "../BlockHashAdapter.sol"; +import { ILayerZeroReceiver } from "./interfaces/ILayerZeroReceiver.sol"; +import { Origin } from "./interfaces/ILayerZeroEndpointV2.sol"; contract LayerZeroAdapter is BlockHashAdapter, Ownable, ILayerZeroReceiver, OAppCore { string public constant PROVIDER = "layer-zero"; @@ -24,10 +24,10 @@ contract LayerZeroAdapter is BlockHashAdapter, Ownable, ILayerZeroReceiver, OApp function lzReceive( Origin calldata _origin, - bytes32 _guid, + bytes32 /* _guid*/, bytes calldata _message, - address _executor, - bytes calldata _extraData + address /* _executor*/, + bytes calldata /* _extraData*/ ) external payable { if ( msg.sender != LAYER_ZERO_ENDPOINT ||