infrastructure-upgrade/lib/openzeppelin-contracts/contracts/mocks/EtherReceiverMock.sol
T-Hax 735546619e
init
Signed-off-by: T-Hax <>
2023-04-08 18:46:18 +00:00

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();
}
}
}