From cd838e0cf0c374ffbe2a6661511c6a36364e7d0f Mon Sep 17 00:00:00 2001 From: Milap Sheth Date: Mon, 29 Jul 2024 03:56:30 -0400 Subject: [PATCH] slither disable --- contracts/utils/GatewayCaller.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/utils/GatewayCaller.sol b/contracts/utils/GatewayCaller.sol index 52f92ada..e7c02dae 100644 --- a/contracts/utils/GatewayCaller.sol +++ b/contracts/utils/GatewayCaller.sol @@ -41,6 +41,7 @@ contract GatewayCaller is IGatewayCaller { ) external payable override { if (gasValue > 0) { if (metadataVersion == MetadataVersion.CONTRACT_CALL) { + // slither-disable-next-line arbitrary-send-eth gasService.payNativeGasForContractCall{ value: gasValue }( address(this), destinationChain, @@ -49,6 +50,7 @@ contract GatewayCaller is IGatewayCaller { tx.origin ); } else if (metadataVersion == MetadataVersion.EXPRESS_CALL) { + // slither-disable-next-line arbitrary-send-eth gasService.payNativeGasForExpressCall{ value: gasValue }( address(this), destinationChain, @@ -85,6 +87,7 @@ contract GatewayCaller is IGatewayCaller { ) external payable override { if (gasValue > 0) { if (metadataVersion == MetadataVersion.CONTRACT_CALL) { + // slither-disable-next-line arbitrary-send-eth gasService.payNativeGasForContractCallWithToken{ value: gasValue }( address(this), destinationChain, @@ -95,6 +98,7 @@ contract GatewayCaller is IGatewayCaller { tx.origin ); } else if (metadataVersion == MetadataVersion.EXPRESS_CALL) { + // slither-disable-next-line arbitrary-send-eth gasService.payNativeGasForExpressCallWithToken{ value: gasValue }( address(this), destinationChain,