Content pfp
Content
@
https://warpcast.com/~/channel/foundry
0 reply
0 recast
0 reaction

Aspyn pfp
Aspyn
@aspyn
Have you ever wondered how devs deploy contracts to addresses starting with 0x42069… or 0x0000…? Or how the Seaport contract address has 14 leading zeros? Using Foundry, it’s much easier than you’d think. I’ll break it down in this guide:
7 replies
4 recasts
12 reactions

Aspyn pfp
Aspyn
@aspyn
To start, go to your foundry.toml file and ensure you have write permissions enabled in your fs_permissions config (at the bottom)
1 reply
0 recast
2 reactions

Aspyn pfp
Aspyn
@aspyn
Next, create a new script, import the contract (ex. WillieNet) you want to deploy to a deterministic address, and write the following code to read your contract’s creation code and store that in a file Then, run the script: `forge script script/GetWillieNetCreationCode.s.sol`
1 reply
0 recast
2 reactions