From 15ea15dd39883744998035647a2577fa271207cc Mon Sep 17 00:00:00 2001 From: Shahul Hameed <10547529+shahthepro@users.noreply.github.com> Date: Thu, 7 Nov 2024 14:17:13 +0700 Subject: [PATCH] Slither things --- contracts/contracts/crosschain/DirectStakingL2Handler.sol | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contracts/contracts/crosschain/DirectStakingL2Handler.sol b/contracts/contracts/crosschain/DirectStakingL2Handler.sol index 25b96ad30c..bc41c21cb1 100644 --- a/contracts/contracts/crosschain/DirectStakingL2Handler.sol +++ b/contracts/contracts/crosschain/DirectStakingL2Handler.sol @@ -105,8 +105,10 @@ contract DirectStakingL2Handler is AbstractDirectStakingHandler { emit DirectStakeRequestCompleted(originalMessageId, tokenAmount.amount); // Transfer tokens to the caller - // slither-disable-next-line unused-return + // slither-disable-start unused-return + // slither-disable-next-line unchecked-transfer woeth.transfer(request.requester, tokenAmount.amount); + // slither-disable-end unused-return if (request.callback) { // If requester needs a callback, invoke it @@ -131,8 +133,10 @@ contract DirectStakingL2Handler is AbstractDirectStakingHandler { require(cc.isSupported, "Mainnet not configured"); // Transfer WETH in - // slither-disable-next-line unused-return + // slither-disable-start unused-return + // slither-disable-next-line unchecked-transfer weth.transferFrom(msg.sender, address(this), wethAmount); + // slither-disable-end unused-return // Build message to initiate (Client.EVM2AnyMessage memory message, uint256 fee) = _buildCCIPMessage(