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.
15 lines
374 B
15 lines
374 B
contract Initializable{
|
|
uint8 private _initialized;
|
|
bool private _initializing;
|
|
|
|
modifier initializer() {
|
|
_;
|
|
}
|
|
|
|
function _disableInitializers() internal virtual {
|
|
require(!_initializing, "Initializable: contract is initializing");
|
|
if (_initialized < type(uint8).max) {
|
|
_initialized = type(uint8).max;
|
|
}
|
|
}
|
|
} |