Transfer replacement (#1962)

* Add Address.sendEther

* Add documentation to sendEther

* Add changelog entry

* Rename sendEther to sendValue

(cherry picked from commit 8d166f3e35)
This commit is contained in:
Nicolás Venturo
2019-10-25 15:53:16 -03:00
committed by Francisco Giordano
parent 6efbee609e
commit b0dbe0fc59
5 changed files with 116 additions and 2 deletions

View File

@ -10,4 +10,10 @@ contract AddressImpl {
function toPayable(address account) external pure returns (address payable) {
return Address.toPayable(account);
}
function sendValue(address payable receiver, uint256 amount) external {
Address.sendValue(receiver, amount);
}
function () external payable { } // sendValue's tests require the contract to hold Ether
}