Using trufffle-flattener, I am trying to create a flat file merging all the related solidity based codes. After executing the flattening scripts, I see only the empty flat file getting created. Could you please assist me in resolving this issue ?

enter image description here enter image description here


Try to use output parameter:

truffle-flattener .\contracts\WetherCrowdsale.sol --output WetherCrowdsale_flat.sol
  • 1
    sudo npm install -g truffle-flattener to use above solution – cryptoKTM Aug 20 '20 at 14:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.