This is really simple demo for how to depploy smart contract to local blockchain
- Ethers.js
- Ganache
- solcjs for compilation
You need to:
- install ganache,
- start a local blockchain,
- create .env file with rpc url and private key
- or use alchemy.com to connect to a testnet
yarn installyarn run compileyarn run buildyarn run deploy
If you have chainId missmatch error try using 1337, no mather what is written in ganache gui