View Code? Open in Web Editor
NEW
This project forked from matter-labs-archive/create2-example
JavaScript 88.66%
Solidity 11.34%
create2-example's Introduction
Example of onchain smart contract wallet generation that is not deployed until needed.
- Set
ETH_PRIVATE_KEY
env variable to private key of the account with ropsten ethereum.
- Run
yarn run-example
to run index.js
script that.
- Generates wallet for
contract/Counter.sol
contract with custom salt arguments and deployer deployed at address stored in factoryAddress.json
- Deposits ETH to this account
- Sets signing key for this account
- Makes transfer to check if account is unlocked
- To deploy contract using CREATE2 run
yarn deploy-with-create2 $SALT
where $SALT
is salt that was printed on step 2
create2-example's People
Contributors