Table of Contents
This is a sample playground to play with Create2 optcode on the EVM. The deployer contract can precompute and deploy a greeter contract.
To get a local copy up and running follow these simple example steps.
- Clone the repo
git clone https://github.com/Oleh325/evm-create2.git
- Install yarn packages
yarn install
- Set your desired condition for the address in the "scripts/getdesiredaddress.ts" file.
To run tests, run:
hh test
To get the salt for your desired contract address, run:
hh run scripts/getdesiredaddress.ts
It will display all the addressess that have been tried, and in the end give you the desired address and the salt that was used to compute it.
Distributed under the MIT License. See LICENSE.txt
for more information.
You can contact me at: oleh325.work@gmail.com
Project Link: https://github.com/Oleh325/evm-create2
Please, check out Chainlink YouTube channel for the great content on smart contracts and Chainlink.