Skip to content

Commit

Permalink
Update contracts/proxy/utils/Initializable.sol
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco <[email protected]>
  • Loading branch information
Amxx and frangio authored Sep 5, 2023
1 parent 329dc22 commit 175b1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/proxy/utils/Initializable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 175b1e9

Please sign in to comment.