We test and deploy a simple Smart Contract on the Ethereum Blockchain using Truffle Development Suite. The following are the instructions and basic commands to test the code:
- Open GitBash in this folder when using a Windows Machine
- Make sure all the required software is installed (NodeJS, truffle, etc., )
- Use truffle test to test the test cases that are currently written (Truffle compiles the code automatically each time we call these commands, so we don't need to compile it separately)
- Use truffle migrate to deploy the code to development test network (Make sure the truffle-config.js file is configured properly)
- Use truffle console to start interacting with the deployed smart contract (refer screenshot in the report for sample commands)
- Use truffle migrate -- network goerli to deploy the code to Goerli (Make sure the truffle-config.js file is configured properly)