mirror of openzeppelin-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
openzeppelin-contracts/contracts/mocks/AddressImpl.sol

18 lines
462 B

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "../utils/Address.sol";
contract AddressImpl {
function isContract(address account) external view returns (bool) {
return Address.isContract(account);
}
function sendValue(address payable receiver, uint256 amount) external {
Address.sendValue(receiver, amount);
}
// sendValue's tests require the contract to hold Ether
receive () external payable { }
}