- Install the required dependency.
$ npm install --save-dev hardhat
$ npm install --save-dev @nomiclabs/hardhat-ethers- Start the ethereum virtual node.
$ npx hardhat node- Deploy the smartcontract
$ npx hardhat run --network localhost scripts/deploy.js- Update the smart contract address and abi.
- abi - artifacts/contracts/mycontract.sol/Splitwise.json
- contract address - (From the deployment command in the previous step)
Update at
web_app/script.js
- variable: abi, contractAddress