To using this repository to compile and deploy Solidity contract, it is recommended to install the MetaMask plugin on your Chrome browser and register the Infura service.
After that, modify the .env
file on each exercise folder, then you can run the scripts in the folder to deploy and call the smart contract.
Using solc-js to compile the smart contracts
npm install -g solc
Generate solidity bytecode ( .bin
file )
solcjs --bin --base-path . ./SomeContract.sol
Generate .abi
file
solcjs --abi --base-path . ./SomeContract.sol