aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler
diff options
context:
space:
mode:
authorkao <zichongkao@gmail.com>2018-12-08 08:35:00 +0800
committerkao <zichongkao@gmail.com>2018-12-08 09:06:52 +0800
commitf14603ca4d91ca72d9e81de53168230d85bc50aa (patch)
tree69eecd797c8c28f1b51513ffe01e7ab5e2104df1 /packages/sol-compiler
parentaa4fcebdc71fa58b12dc12ab03d7697444416c09 (diff)
downloaddexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.tar
dexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.tar.gz
dexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.tar.bz2
dexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.tar.lz
dexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.tar.xz
dexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.tar.zst
dexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.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])) {