Fix deprecation warnings (#2115)
* Fix deprecation warnings * Workaround linter bug
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
pragma solidity ^0.6.0;
|
||||
pragma solidity ^0.6.2;
|
||||
|
||||
/**
|
||||
* @dev Collection of functions related to the address type
|
||||
@ -52,7 +52,7 @@ library Address {
|
||||
require(address(this).balance >= amount, "Address: insufficient balance");
|
||||
|
||||
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
|
||||
(bool success, ) = recipient.call.value(amount)("");
|
||||
(bool success, ) = recipient.call{ value: amount }("");
|
||||
require(success, "Address: unable to send value, recipient may have reverted");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user