diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-07 18:18:53 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-07 18:18:53 +0800 |
commit | 0fc981400442e4c567ca363bdf0f4c03ba87473d (patch) | |
tree | ee19dfb9dcd9c631fa4138326b9d639a7fc7374e /packages/sol-resolver/src/resolvers/name_resolver.ts | |
parent | e617da3bbf650b25c29df33cd12e23c994efe674 (diff) | |
parent | e0bc01eea1c20e0afda296f331c6a475e062b59c (diff) | |
download | dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.gz dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.bz2 dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.lz dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.xz dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.tar.zst dexon-0x-contracts-0fc981400442e4c567ca363bdf0f4c03ba87473d.zip |
merge v2-prototype
Diffstat (limited to 'packages/sol-resolver/src/resolvers/name_resolver.ts')
-rw-r--r-- | packages/sol-resolver/src/resolvers/name_resolver.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/packages/sol-resolver/src/resolvers/name_resolver.ts b/packages/sol-resolver/src/resolvers/name_resolver.ts index e489c70a7..bcd98615f 100644 --- a/packages/sol-resolver/src/resolvers/name_resolver.ts +++ b/packages/sol-resolver/src/resolvers/name_resolver.ts @@ -1,5 +1,4 @@ import * as fs from 'fs'; -import * as _ from 'lodash'; import * as path from 'path'; import { ContractSource } from '../types'; @@ -35,7 +34,6 @@ export class NameResolver extends EnumerableResolver { public getAll(): ContractSource[] { const contractSources: ContractSource[] = []; const onFile = (filePath: string) => { - const contractName = path.basename(filePath, SOLIDITY_FILE_EXTENSION); const absoluteContractPath = path.join(this._contractsDir, filePath); const source = fs.readFileSync(absoluteContractPath).toString(); const contractSource = { |