Update packages/sol-compiler/src/compiler.ts

Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
This commit is contained in:
Fabio B
2018-12-03 13:34:55 +01:00
committed by GitHub
parent a355001d13
commit 91397bf8a5

View File

@@ -398,7 +398,7 @@ export class Compiler {
/**
* Some imports path are relative ("../Token.sol", "./Wallet.sol")
* while others are absolute ("Token.sol", "@0x/contracts/Wallet.sol")
* And we need to do the hack mentooned above only for relative imports.
* And we need to append the base path for relative imports.
*/
importPath = path.resolve('/' + contractFolder, importPath).replace('/', '');
}