(version: bigint)
| 62 | * Use 0xffffffffffffffff (u64.max) to disable initializers permanently |
| 63 | */ |
| 64 | export const setInitializers = (version: bigint) => |
| 65 | StorageSlot( |
| 66 | // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff)) |
| 67 | '0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00', |
| 68 | concat([ |
| 69 | toHex(0n, { size: 24 }), |
| 70 | toHex(version, { size: 8 }), // uint64 version |
| 71 | ]), |
| 72 | ) |
no test coverage detected