Files
openzeppelin-contracts/certora/munged/mocks/EtherReceiverMock.sol
2022-03-03 12:42:16 -08:00

18 lines
319 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract EtherReceiverMock {
bool private _acceptEther;
function setAcceptEther(bool acceptEther) public {
_acceptEther = acceptEther;
}
receive() external payable {
if (!_acceptEther) {
revert();
}
}
}