aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-04-13 19:20:54 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-04-13 19:20:54 +0800
commit74012ad584ba93043e60f143d88619f580ceed08 (patch)
tree9eb81cdf41d0a1b948818d4f91b1fdf8cbcf17fd
parent06b4f007f88b6eb58a9d49997318b872be9f5dea (diff)
downloaddexon-sol-tools-74012ad584ba93043e60f143d88619f580ceed08.tar
dexon-sol-tools-74012ad584ba93043e60f143d88619f580ceed08.tar.gz
dexon-sol-tools-74012ad584ba93043e60f143d88619f580ceed08.tar.bz2
dexon-sol-tools-74012ad584ba93043e60f143d88619f580ceed08.tar.lz
dexon-sol-tools-74012ad584ba93043e60f143d88619f580ceed08.tar.xz
dexon-sol-tools-74012ad584ba93043e60f143d88619f580ceed08.tar.zst
dexon-sol-tools-74012ad584ba93043e60f143d88619f580ceed08.zip
Rename getAllContracts to getAll
-rw-r--r--packages/deployer/src/compiler.ts2
-rw-r--r--packages/resolver/src/resolvers/enumerable_resolver.ts2
-rw-r--r--packages/resolver/src/resolvers/name_resolver.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/packages/deployer/src/compiler.ts b/packages/deployer/src/compiler.ts
index ef4e048d5..0a99e5659 100644
--- a/packages/deployer/src/compiler.ts
+++ b/packages/deployer/src/compiler.ts
@@ -84,7 +84,7 @@ export class Compiler {
await createDirIfDoesNotExistAsync(SOLC_BIN_DIR);
let contractNamesToCompile: string[] = [];
if (this._specifiedContracts.has(ALL_CONTRACTS_IDENTIFIER)) {
- const allContracts = this._nameResolver.getAllContracts();
+ const allContracts = this._nameResolver.getAll();
contractNamesToCompile = _.map(allContracts, contractSource =>
path.basename(contractSource.path, constants.SOLIDITY_FILE_EXTENSION),
);
diff --git a/packages/resolver/src/resolvers/enumerable_resolver.ts b/packages/resolver/src/resolvers/enumerable_resolver.ts
index bb578bb86..0efa43e7c 100644
--- a/packages/resolver/src/resolvers/enumerable_resolver.ts
+++ b/packages/resolver/src/resolvers/enumerable_resolver.ts
@@ -3,5 +3,5 @@ import { ContractSource } from '../types';
import { Resolver } from './resolver';
export abstract class EnumerableResolver extends Resolver {
- public abstract getAllContracts(): ContractSource[];
+ public abstract getAll(): ContractSource[];
}
diff --git a/packages/resolver/src/resolvers/name_resolver.ts b/packages/resolver/src/resolvers/name_resolver.ts
index 522e10142..6849b7610 100644
--- a/packages/resolver/src/resolvers/name_resolver.ts
+++ b/packages/resolver/src/resolvers/name_resolver.ts
@@ -30,7 +30,7 @@ export class NameResolver extends EnumerableResolver {
this._traverseContractsDir(this._contractsDir, onFile);
return contractSource;
}
- public getAllContracts(): ContractSource[] {
+ public getAll(): ContractSource[] {
const SOLIDITY_FILE_EXTENSION = '.sol';
const contractSources: ContractSource[] = [];
const onFile = (filePath: string) => {