16 lines
472 B
Solidity
16 lines
472 B
Solidity
pragma solidity 0.4.24;
|
|
|
|
import "../upgradeability/EternalStorage.sol";
|
|
|
|
contract Initializable is EternalStorage {
|
|
bytes32 internal constant INITIALIZED = 0x0a6f646cd611241d8073675e00d1a1ff700fbf1b53fcf473de56d1e6e4b714ba; // keccak256(abi.encodePacked("isInitialized"))
|
|
|
|
function setInitialize() internal {
|
|
boolStorage[INITIALIZED] = true;
|
|
}
|
|
|
|
function isInitialized() public view returns (bool) {
|
|
return boolStorage[INITIALIZED];
|
|
}
|
|
}
|