aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler
diff options
context:
space:
mode:
authorkao <zichongkao@gmail.com>2018-12-08 08:35:00 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:19:31 +0800
commit93422eab55f674ed33168a4731884e54d5a9ca78 (patch)
treea3829d1abdfd07171319db5454d9a4336fc62888 /packages/sol-compiler
parent74e07b63de9688aa0dca2ce69863203766db6008 (diff)
downloaddexon-0x-contracts-93422eab55f674ed33168a4731884e54d5a9ca78.tar.gz
dexon-0x-contracts-93422eab55f674ed33168a4731884e54d5a9ca78.tar.zst
dexon-0x-contracts-93422eab55f674ed33168a4731884e54d5a9ca78.zip
Implement prefer-template tslint rule
Diffstat (limited to 'packages/sol-compiler')
-rw-r--r--packages/sol-compiler/src/compiler.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts
index cba67f292..85df8209e 100644
--- a/packages/sol-compiler/src/compiler.ts
+++ b/packages/sol-compiler/src/compiler.ts
@@ -400,7 +400,7 @@ export class Compiler {
* while others are absolute ("Token.sol", "@0x/contracts/Wallet.sol")
* And we need to append the base path for relative imports.
*/
- importPath = path.resolve('/' + contractFolder, importPath).replace('/', '');
+ importPath = path.resolve(`/${contractFolder}`, importPath).replace('/', '');
}
if (_.isUndefined(sourcesToAppendTo[importPath])) {