- zkSync branch: https://github.com/matter-labs/zksync/tree/create2-deployment
- deployed to: https://ropsten-beta.zkscan.io/
- zksync.js: 0.8.2-beta
- Set
ETH_PRIVATE_KEY
env variable to private key of the account with ropsten ethereum. - Run
yarn run-example
to runindex.js
script that.- Generates wallet for
contract/Counter.sol
contract with custom salt arguments and deployer deployed at address stored infactoryAddress.json
- Deposits ETH to this account
- Sets signing key for this account
- Makes transfer to check if account is unlocked
- Generates wallet for
- To deploy contract using CREATE2 run
yarn deploy-with-create2 $SALT
where$SALT
is salt that was printed on step 2