* Add Address.sendEther * Add documentation to sendEther * Add changelog entry * Rename sendEther to sendValue
16 lines
288 B
Solidity
16 lines
288 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
contract EtherReceiverMock {
|
|
bool private _acceptEther;
|
|
|
|
function setAcceptEther(bool acceptEther) public {
|
|
_acceptEther = acceptEther;
|
|
}
|
|
|
|
function () external payable {
|
|
if (!_acceptEther) {
|
|
revert();
|
|
}
|
|
}
|
|
}
|