Remove Address.toPayable (#2133)
* Remove Address.toPayable * Add changelog entry
This commit is contained in:
@ -32,16 +32,6 @@ library Address {
|
||||
return (codehash != accountHash && codehash != 0x0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Converts an `address` into `address payable`. Note that this is
|
||||
* simply a type cast: the actual underlying value is not changed.
|
||||
*
|
||||
* _Available since v2.4.0._
|
||||
*/
|
||||
function toPayable(address account) internal pure returns (address payable) {
|
||||
return address(uint160(account));
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
|
||||
* `recipient`, forwarding all available gas and reverting on errors.
|
||||
|
||||
Reference in New Issue
Block a user