735546619e
Signed-off-by: T-Hax <>
18 lines
320 B
Solidity
18 lines
320 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.6.0;
|
|
|
|
contract EtherReceiverMock {
|
|
bool private _acceptEther;
|
|
|
|
function setAcceptEther(bool acceptEther) public {
|
|
_acceptEther = acceptEther;
|
|
}
|
|
|
|
receive () external payable {
|
|
if (!_acceptEther) {
|
|
revert();
|
|
}
|
|
}
|
|
}
|