-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,9 @@ contract BatchPayments { | |
uint256 balance = address(this).balance; | ||
// make sure that we return any excess to the caller | ||
// Later TODO: Check for gas | ||
if (balance > 0) | ||
payable(msg.sender).transfer(balance); | ||
if (balance > 23000) | ||
payable(msg.sender).call{value: balance}(""); | ||
//payable(msg.sender).transfer(balance); | ||
} | ||
Check warning Code scanning / Slither Unchecked low-level calls Medium
BatchPayments.sendEther(address[],uint256[]) ignores return value by address(msg.sender).call{value: balance}()
Check warning Code scanning / Slither Low-level calls Warning
Low level call in BatchPayments.sendEther(address[],uint256[]):
- address(msg.sender).call{value: balance}() |
||
|
||
function sendToken(IERC20 token, address[] memory list, uint256[] memory amounts) external { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters