Transfer replacement (#1962)

* Add Address.sendEther

* Add documentation to sendEther

* Add changelog entry

* Rename sendEther to sendValue
This commit is contained in:
Nicolás Venturo
2019-10-25 15:53:16 -03:00
committed by GitHub
parent aae95db4e0
commit 8d166f3e35
5 changed files with 116 additions and 2 deletions

View File

@ -0,0 +1,15 @@
pragma solidity ^0.5.0;
contract EtherReceiverMock {
bool private _acceptEther;
function setAcceptEther(bool acceptEther) public {
_acceptEther = acceptEther;
}
function () external payable {
if (!_acceptEther) {
revert();
}
}
}