Skip to content

Commit

Permalink
slither disable
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Jul 29, 2024
1 parent 85f3e5b commit cd838e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/utils/GatewayCaller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -49,6 +50,7 @@ contract GatewayCaller is IGatewayCaller {
tx.origin

Check warning on line 50 in contracts/utils/GatewayCaller.sol

View workflow job for this annotation

GitHub Actions / lint

Avoid to use tx.origin
);
} else if (metadataVersion == MetadataVersion.EXPRESS_CALL) {
// slither-disable-next-line arbitrary-send-eth
gasService.payNativeGasForExpressCall{ value: gasValue }(
address(this),
destinationChain,
Expand Down Expand Up @@ -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,
Expand All @@ -95,6 +98,7 @@ contract GatewayCaller is IGatewayCaller {
tx.origin

Check warning on line 98 in contracts/utils/GatewayCaller.sol

View workflow job for this annotation

GitHub Actions / lint

Avoid to use tx.origin
);
} else if (metadataVersion == MetadataVersion.EXPRESS_CALL) {
// slither-disable-next-line arbitrary-send-eth
gasService.payNativeGasForExpressCallWithToken{ value: gasValue }(
address(this),
destinationChain,
Expand Down

0 comments on commit cd838e0

Please sign in to comment.