poanetwork / solidity-flattener

Utility to combine Solidity project to a flat file
Apache License 2.0
326 stars 105 forks source link

there is issue with the commit: "change-relative-path-to-absolute helper" #20

Closed judezhu closed 6 years ago

judezhu commented 6 years ago

After i reverted the change, the lib works. It stops when try to find "../math/SafeMath.sol".

Error message is:

!!!zeppelin-solidity/contracts/crowdsale/Crowdsale.sol SOURCE FILE NOT FOUND. TRY TO FIND IT RECURSIVELY!!!

zeppelin-solidity/contracts/crowdsale/Crowdsale.sol SOURCE FILE FOUND

!!!zeppelin-solidity/contracts/token/MintableToken.sol SOURCE FILE NOT FOUND. TRY TO FIND IT RECURSIVELY!!!

zeppelin-solidity/contracts/token/MintableToken.sol SOURCE FILE FOUND

./Token.sol SOURCE FILE FOUND

!!!../math/SafeMath.sol SOURCE FILE NOT FOUND. TRY TO FIND IT RECURSIVELY!!!

vbaranov commented 6 years ago

@judezhu for which solidity project you are trying to create flat solidity file?

vbaranov commented 6 years ago

@judezhu thanks, I reproduced and fixed the mistake.