npm install -g truffle truffle-lattener
rm -rf build/contracts && truffle compile
truffle migrate --reset
truffle test
To run specific test:
truffle test [path/to/test/file.ext]
ex:
truffle test ./test/JoinPackageViaEther.js
cd ~/Library/Application\ Support/Ganache
rm -rf *
truffle migrate --network [netWordName] --reset
netWordName=ropsten
, mainnet
(see truffle-config.js
file)
truffle-flattener ./contracts/ReserveFund.sol > out/ReserveFund.sol
truffle-flattener ./contracts/DABANKING.sol > out/DABANKING.sol
truffle-flattener ./contracts/Wallet.sol > out/Wallet.sol
truffle-flattener ./contracts/Citizen.sol > out/Citizen.sol
Go to each file and remove duplicate pragma solidity 0.4.25;
declarations, only keep one on top.