The deployment script script/deployLaunchHook.s.sol calculates the hook address using Hooks.BEFORE_INITIALIZE_FLAG. However, the TokenLaunchHook contract implements afterInitialize permissions, not beforeInitialize.
The BaseHook constructor validates that the deployed address flags match the contract's getHookPermissions(). Because of this mismatch, the deployment transaction will inevitably revert with HookAddressNotValid.
Likelihood:
Occurs every deployment.
Impact:
Prevents deployment of the protocol until fixed.
Update the flags in the deployment script to match the contract's permissions.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.