aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-08-15 01:43:31 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-08-15 02:42:06 +0800
commitaa27346f93fafa5fdc9fca69c5604caca9278dfd (patch)
tree0042bee86f748197928c99b787d0357fb4c9eb48 /packages
parentdb6de490b21b6df8dd414c58657c3b48c39dd6d0 (diff)
downloaddexon-sol-tools-aa27346f93fafa5fdc9fca69c5604caca9278dfd.tar
dexon-sol-tools-aa27346f93fafa5fdc9fca69c5604caca9278dfd.tar.gz
dexon-sol-tools-aa27346f93fafa5fdc9fca69c5604caca9278dfd.tar.bz2
dexon-sol-tools-aa27346f93fafa5fdc9fca69c5604caca9278dfd.tar.lz
dexon-sol-tools-aa27346f93fafa5fdc9fca69c5604caca9278dfd.tar.xz
dexon-sol-tools-aa27346f93fafa5fdc9fca69c5604caca9278dfd.tar.zst
dexon-sol-tools-aa27346f93fafa5fdc9fca69c5604caca9278dfd.zip
simplify method parameter
Diffstat (limited to 'packages')
-rw-r--r--packages/sol-compiler/src/compiler.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts
index 897ace9b6..3b46d7b46 100644
--- a/packages/sol-compiler/src/compiler.ts
+++ b/packages/sol-compiler/src/compiler.ts
@@ -216,7 +216,7 @@ export class Compiler {
for (const contractPath of input.contractsToCompile) {
await this._verifyAndPersistCompilationAsync(
- { path: contractPath },
+ contractPath,
contractData[contractPath].contractName,
fullSolcVersion,
compiled,
@@ -227,19 +227,17 @@ export class Compiler {
}
}
private async _verifyAndPersistCompilationAsync(
- contractSource: { path: string },
+ contractPath: string,
contractName: string,
fullSolcVersion: string,
compiled: solc.StandardOutput,
sourceTreeHashHex: string,
currentArtifactIfExists: ContractArtifact | void,
): Promise<void> {
- const compiledData = compiled.contracts[contractSource.path][contractName];
+ const compiledData = compiled.contracts[contractPath][contractName];
if (_.isUndefined(compiledData)) {
throw new Error(
- `Contract ${contractName} not found in ${
- contractSource.path
- }. Please make sure your contract has the same name as it's file name`,
+ `Contract ${contractName} not found in ${contractPath}. Please make sure your contract has the same name as it's file name`,
);
}
if (!_.isUndefined(compiledData.evm)) {