Skip to content

Commit

Permalink
fix: use 7201 for initializable
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed Nov 28, 2024
1 parent 231e8b5 commit c7e5a70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/Initializable.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

bytes32 constant INIT_SLOT = keccak256("msa.initilizable");
bytes32 constant INIT_SLOT = keccak256(
abi.encode(uint256(keccak256("initializable.transient.msa")) - 1)
) & ~bytes32(uint256(0xff));

library Initializable {
error NotInitializable();
Expand Down

0 comments on commit c7e5a70

Please sign in to comment.