An advanced storage smart contract is written in solidity and deployed in truffle. The smart contract contains an integer array and methods to perform operations. You can add an item, get an item from a particular index, get the entire array, and also get the length of the array at any given time.
The tests directory contains tests for all methods of the Smart Contract. Run these tests before deploying them How to run: "truffle test" command
- npm
- truffle
- open a terminal window and browse to the folder containing this project
- Run "truffle test". This should compile contracts and test for errors
- Run "truffle develop" to open the truffle console
- Run "migrate --reset" to compile and deploy the smart contract