Content
@
0 reply
0 recast
0 reaction
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
13 reactions
SonOfMosiah
@sonofmosiah.eth
Amazing guide @aspyn! 100 $degen Love the idea to write the creation code to a file. I might suggest storing the salt in env and reading from it using vm.envAddress(), but it’s totally preference!
2 replies
0 recast
1 reaction
SonOfMosiah
@sonofmosiah.eth
Also need to be careful with constructor args as they are added to the creation code.
1 reply
0 recast
1 reaction
Aspyn
@aspyn
Thanks, and yeah for sure that works too
0 reply
0 recast
0 reaction