View Source: openzeppelin-solidity/contracts/utils/Address.solarrow-up-right
Address
isContract(address account)
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.
function isContract(address account) internal view returns(bool)
Returns
whether the target address is a contract
Arguments
Name
Type
Description
account
address
address of the account to check
Last updated 6 years ago
Was this helpful?