aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-resolver/src/resolvers/name_resolver.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-20 00:19:36 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-20 00:19:36 +0800
commit125a940560a01305781bfb6754f52fa64669a6f3 (patch)
tree70fc5d2aab95676245460eed72ba059c1661339f /packages/sol-resolver/src/resolvers/name_resolver.ts
parenta7f847bf3e693a275b0aa71bcdb12d947b445175 (diff)
parentb3978b641c12c7bfe9bab1d561384eeaace25321 (diff)
downloaddexon-sol-tools-125a940560a01305781bfb6754f52fa64669a6f3.tar.gz
dexon-sol-tools-125a940560a01305781bfb6754f52fa64669a6f3.tar.zst
dexon-sol-tools-125a940560a01305781bfb6754f52fa64669a6f3.zip
Merge branch 'development' into feature/website/0x-org
Diffstat (limited to 'packages/sol-resolver/src/resolvers/name_resolver.ts')
-rw-r--r--packages/sol-resolver/src/resolvers/name_resolver.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/sol-resolver/src/resolvers/name_resolver.ts b/packages/sol-resolver/src/resolvers/name_resolver.ts
index d6ac6a499..aee326fb7 100644
--- a/packages/sol-resolver/src/resolvers/name_resolver.ts
+++ b/packages/sol-resolver/src/resolvers/name_resolver.ts
@@ -20,10 +20,7 @@ export class NameResolver extends EnumerableResolver {
if (contractName === lookupContractName) {
const absoluteContractPath = path.join(this._contractsDir, filePath);
const source = fs.readFileSync(absoluteContractPath).toString();
- contractSource = {
- source,
- path: filePath,
- };
+ contractSource = { source, path: filePath, absolutePath: absoluteContractPath };
return true;
}
return undefined;
@@ -36,10 +33,7 @@ export class NameResolver extends EnumerableResolver {
const onFile = (filePath: string) => {
const absoluteContractPath = path.join(this._contractsDir, filePath);
const source = fs.readFileSync(absoluteContractPath).toString();
- const contractSource = {
- source,
- path: filePath,
- };
+ const contractSource = { source, path: filePath, absolutePath: absoluteContractPath };
contractSources.push(contractSource);
};
this._traverseContractsDir(this._contractsDir, onFile);