@bananapus/721-hook-v6 0.0.74 → 0.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/JB721Checkpoints.sol +4 -1
package/package.json
CHANGED
package/src/JB721Checkpoints.sol
CHANGED
|
@@ -144,7 +144,10 @@ contract JB721Checkpoints is Votes, IJB721Checkpoints {
|
|
|
144
144
|
/// @param hookAddress The hook this module serves.
|
|
145
145
|
function initialize(address hookAddress) external override {
|
|
146
146
|
if (hook != address(0)) revert JB721Checkpoints_AlreadyInitialized({hook: hook});
|
|
147
|
-
//
|
|
147
|
+
// No caller check is needed (and there is none): `JB721CheckpointsDeployer.deploy` creates this clone with
|
|
148
|
+
// the hook as the CREATE2 salt and calls `initialize(hook)` atomically in the same call, so a clone can only
|
|
149
|
+
// ever be bound to its salt-designated hook and there is no front-run window between cloning and init. The
|
|
150
|
+
// implementation itself is locked against direct use by the `address(1)` sentinel set in its constructor.
|
|
148
151
|
hook = hookAddress;
|
|
149
152
|
}
|
|
150
153
|
|