You can use create2
to generate the contract address in advance. This demo will show you step by step.
- Demo contract
- Deploy script
- Make phone
- Change order
- Verify address
To get started with this boilerplate, you just need to follow these simple steps:
-
Deploy demo contract with script
npx hardhat run --network sepolia scripts/create2/deploy_create2.js
-
Verify address
Change Color/Display/Capacity will get different address
By MIT licensed.