- Here is the link: https://trufflesuite.com/docs/truffle/quickstart/
truffle unbox metacoin
- Change the version to
pragma solidity ^0.8.0;
- Remove contructor public
- All the contracts need to specify the license
truffle test
truffle test ./test/TestMetaCoin.sol
truffle test ./test/metacoin.js
truffle compile
-
Here is the link: https://medium.com/coinmonks/5-minute-guide-to-deploying-smart-contracts-with-truffle-and-ropsten-b3e30d5ee1e
-
Install plugins
npm install --save truffle-hdwallet-provider
npm install -D truffle-plugin-verify
-
Need to create new project on infura to get key, and get private key from metamask wallet, ether_scan api_keys
-
Deploy and verify the contract
truffle create migration MetaCoin
truffle migrate --network ropsten
truffle run verify MetaCoin --network ropsten