@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/721-hook-v6",
3
- "version": "0.0.74",
3
+ "version": "0.0.75",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
- // `hook` cannot be zero when called through the deployer because `msg.sender` must equal `hook`.
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