Remove Address.toPayable (#2133)

* Remove Address.toPayable

* Add changelog entry
This commit is contained in:
Nicolás Venturo
2020-03-16 18:22:02 -03:00
committed by GitHub
parent eb34ae67ff
commit 9975a1a0c2
4 changed files with 2 additions and 31 deletions

View File

@ -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.