You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
Compiling or using the Initializable.sol isn't possible due to an error in the isConstructor() function. The function in question and the error are highlighted below ;
/// @dev Returns true if and only if the function is running in the constructorfunctionisConstructor()privateviewreturns(bool){// extcodesize checks the size of the code stored in an address, and// address returns the current address. Since the code is still not// deployed when running a constructor, any checks on its code size will// yield zero, making it an effective way to detect if a contract is// under construction or not.uint256cs;assembly{cs :=extcodesize(address)}<--returncs==0;}
This is invalid in Solidity as in address is a reserved keyword.
Compiling or using the Initializable.sol isn't possible due to an error in the isConstructor() function. The function in question and the error are highlighted below ;
This is invalid in Solidity as in
address
is a reserved keyword.Given the context, it seems it should be ;
The text was updated successfully, but these errors were encountered: