- Since the dAPP lacks a GUI/frontend the only possible way to test it is to spin up, a truffle console via
truffle console --network ropsten
- The smart token contract
ERC20Token
is deployed at the address - 0x87406fEE23CfbF5f7C170Ca432547868E30df5Da - The seed supply chain smart contract
SeedChain
is deployed at - 0xc764dC81cA232438f21205B20F2925f452b03317 - To load a smart contract
SeedChain.deployed().then(function(instance) {return instance });
- An example workflow is provided in
test/test.txt
- Configure VS code solidity extension settings to use solidity compiler version 0.8.13. (Find compiler binary commit hash here)
- Install specific truffle version with solidity version 0.8.13.
npm install --save-dev [email protected]
- Install node and npm through nvm.
- Install ganache, truffle, geth, metamask.
cd
into project folder.nvm use 14.8.0
sudo npm i truffle
./node_modules/.bin/truffle init
- Compile
F5
- Deploy -
./node_modules/.bin/truffle deploy --reset
- Infura -
npm install --save-dev @truffle/hdwallet-provider
- Deployment error -
nvm install --lts; nvm use --lts;