I have problem when I use truffle test. I seperated files used in contract with Solidity framework and I can't compile my code(see below). When code is not seperated works fine.

I tried reinstall truffle again but doesn't help for me. I'm using ubuntu but on mac its working! - so I suppose maybe problem is in case-sensitive.

contracts/Contract.sol:7:1: ParserError: Source "contracts/Token.sol" not found: File import callback not supported
import './Token.sol' as Token;
Compiliation failed. See above.

I read Solidity source file page and File import callback not supported

Your Answer

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

Browse other questions tagged or ask your own question.