Improve Address tests (#4191)

This commit is contained in:
Ernesto García
2023-04-25 13:31:01 +02:00
committed by GitHub
parent 6aac66d065
commit 1a079d258b
3 changed files with 45 additions and 1 deletions

View File

@ -59,7 +59,7 @@ library Address {
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");