// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; contract EtherReceiverMockUpgradeable is Initializable { function __EtherReceiverMock_init() internal onlyInitializing { } function __EtherReceiverMock_init_unchained() internal onlyInitializing { } bool private _acceptEther; function setAcceptEther(bool acceptEther) public { _acceptEther = acceptEther; } receive() external payable { if (!_acceptEther) { revert(); } } /** * This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }