AddressUtils
Index
Reference
Functions
isContract
function isContract(address addr) internal view returns (bool)
Returns whether the target address is a contract, This function will return false if invoked during the constructor of a contract, as the code is not actually created until after the constructor finishes.
- Parameters:
addr
- address to check- Returns:
- whether the target address is a contract