This is the code from the ZkSync Developer Quickstart Hello World tutorial.
Disclaimer: I am not affiliated in any way with the zkSync team.
- Clone the repository
git clone https://github.com/Vanclief/zksync-example.git - Install the dependencies
yarn install
- Get tokens from the zkSync faucet
Go to the zkSync portal, login with your Metamask wallet and click on Faucet from the left menu bar.
- Add your private key
Add your private key to the deploy/deply.ts file:
const wallet = new Wallet("0x..."); // Your private key goes here
- Compile the contract
yarn hardhat compile
- Deploy the contract
yarn hardhat deploy-zksync