Module 2 of Eth-Avax course by metacrafters
Adding functionalities in assessment.sol and interact with smart contract using the frontend.
if metamask or any other crypto wallet is not installed:
* First fork the project and clone it.
* In hardhat, first use the sepolia testnet.
* In hardhat.config.js, add the sepolia network and use alchemy as provider and also add the private key of your metamask account.
* After that, use npm i.
* use npx hardhat run scripts/deploy.js --network sepolia.
* Now copy the contract address in the contract address variable in ./pages/index.js
* Now run npm run dev.
* It will create a server on localhost:3000
* Now you can use any wallet to interact with any functionality except deposit and withdraw.
* To interact with deposit and withdraw, you must choose your account through which you have done deployment of contract.
* Paste correct Alchemy URL .
* Use the account through which you have done deployment to interact with deposit and withdraw functions otherwise you will get call revert function error or unexpected gas limit error.