A smart contract that employs simple storage methods, written in solidity and deployed in truffle The smart contract has 2 functions namely get and set which as the names indicate, return the value and set the value of a variable.
The tests directory contains tests for the SimpleStorage 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