Steps to replicate :
- Install ganache to use as test blockchain network.
- Change ganache port to 8545 for Metamask to catch or create a new network on Metamask. (Optional)
- Clone the repo and install packages
git clone https://github.com/shivammutrejarug/research_gnache.git
cd research_gnache
npm install .
- If you haven't made changes as suggested in step 2, change the port to 7545 i.e the default ganache port in truffle-config.js
- Deploy the contract and run tests.
truffle migrate \\this will deploy the contract on the blockchain.
truffle test \\run test cases.