Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 05-hook-deployment.mdx #929

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/contracts/v4/guides/hooks/05-hook-deployment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ uint160 flags = uint160(
);
```

Mine the address by finding a `salt` that produces a hook address with the desired `flags`, use the Foundry deterministic deployer when deploying via Foundry script:
Mine the address by finding a `salt` that produces a hook address with the desired `flags`, use the Foundry deterministic deployer when deploying via Foundry script. For most chains, CREATE2_DEPLOYER contract address is [0x4e59b44847b379578588920ca78fbf26c0b4956c](https://book.getfoundry.sh/guides/deterministic-deployments-using-create2#getting-started).

```solidity
bytes memory constructorArgs = abi.encode(POOLMANAGER);
Expand Down Expand Up @@ -128,4 +128,4 @@ contract PointsHookScript is Script, Constants {
require(address(pointsHook) == hookAddress, "PointsHookScript: hook address mismatch");
}
}
```
```