Add notice to isContract helper on constract constructors

This commit is contained in:
Santiago Palladino
2018-03-20 13:32:48 -03:00
parent 6fbe771c27
commit 626742e5af

View File

@ -7,6 +7,8 @@ library AddressUtils {
/**
* Returns whether there is code in the target address
* @dev 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.
* @param addr address address to check
* @return whether there is code in the target address
*/
@ -16,4 +18,4 @@ library AddressUtils {
return size > 0;
}
}
}