mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
439 B
19 lines
439 B
contract Initializable {
|
|
uint8 private _initialized;
|
|
bool private _initializing;
|
|
|
|
modifier initializer() {
|
|
_;
|
|
}
|
|
|
|
modifier reinitializer(uint64 version) {
|
|
_;
|
|
}
|
|
|
|
function _disableInitializers() internal virtual {
|
|
require(!_initializing, "Initializable: contract is initializing");
|
|
if (_initialized < type(uint8).max) {
|
|
_initialized = type(uint8).max;
|
|
}
|
|
}
|
|
}
|
|
|