Skip to content

Commit

Permalink
Slither things
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Nov 7, 2024
1 parent cc3caf7 commit 15ea15d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions contracts/contracts/crosschain/DirectStakingL2Handler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ contract DirectStakingL2Handler is AbstractDirectStakingHandler {
emit DirectStakeRequestCompleted(originalMessageId, tokenAmount.amount);

Check warning on line 105 in contracts/contracts/crosschain/DirectStakingL2Handler.sol

View check run for this annotation

Codecov / codecov/patch

contracts/contracts/crosschain/DirectStakingL2Handler.sol#L105

Added line #L105 was not covered by tests

// 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);

Check warning on line 110 in contracts/contracts/crosschain/DirectStakingL2Handler.sol

View check run for this annotation

Codecov / codecov/patch

contracts/contracts/crosschain/DirectStakingL2Handler.sol#L110

Added line #L110 was not covered by tests
// slither-disable-end unused-return

if (request.callback) {
// If requester needs a callback, invoke it
Expand All @@ -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);

Check warning on line 138 in contracts/contracts/crosschain/DirectStakingL2Handler.sol

View check run for this annotation

Codecov / codecov/patch

contracts/contracts/crosschain/DirectStakingL2Handler.sol#L138

Added line #L138 was not covered by tests
// slither-disable-end unused-return

// Build message to initiate
(Client.EVM2AnyMessage memory message, uint256 fee) = _buildCCIPMessage(

Check warning on line 142 in contracts/contracts/crosschain/DirectStakingL2Handler.sol

View check run for this annotation

Codecov / codecov/patch

contracts/contracts/crosschain/DirectStakingL2Handler.sol#L142

Added line #L142 was not covered by tests
Expand Down

0 comments on commit 15ea15d

Please sign in to comment.