Solidity contract Example to add names and retrieve
- Clone this repo
- Run ganache in localhost port 8546 (you can change this from the
truffle-config.js
) - Download truffle.
- Go to the path where repo is downloaded.
- do
truffle compile
- do
truffle migrate
- The contract is now deployed in blockchain (in this case ganache)
- You can now interact with the contract using
truffle console