diff --git a/contracts/proxy/utils/Initializable.sol b/contracts/proxy/utils/Initializable.sol index c8f11fe3672..7545bcca64a 100644 --- a/contracts/proxy/utils/Initializable.sol +++ b/contracts/proxy/utils/Initializable.sol @@ -116,7 +116,7 @@ abstract contract Initializable { bool initialSetup = initialized == 0 && isTopLevelCall; bool construction = initialized == 1 && address(this).code.length == 0; - if (!firstCall && !construction) { + if (!initialSetup && !construction) { revert AlreadyInitialized(); } $._initialized = 1;