aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/deployer/src')
-rw-r--r--packages/deployer/src/utils/compiler.ts5
-rw-r--r--packages/deployer/src/utils/error_reporter.ts1
2 files changed, 6 insertions, 0 deletions
diff --git a/packages/deployer/src/utils/compiler.ts b/packages/deployer/src/utils/compiler.ts
index 1d21d7d31..d8b5f78c9 100644
--- a/packages/deployer/src/utils/compiler.ts
+++ b/packages/deployer/src/utils/compiler.ts
@@ -77,6 +77,11 @@ export function getNormalizedErrMsg(errMsg: string): string {
return normalizedErrMsg;
}
+/**
+ * Parses the contract source code and extracts the dendencies
+ * @param source Contract source code
+ * @return List of dependendencies
+ */
export function parseDependencies(source: string): string[] {
// TODO: Use a proper parser
const IMPORT_REGEX = /(import\s)/;
diff --git a/packages/deployer/src/utils/error_reporter.ts b/packages/deployer/src/utils/error_reporter.ts
index b28e4fbbe..bf3f96a7c 100644
--- a/packages/deployer/src/utils/error_reporter.ts
+++ b/packages/deployer/src/utils/error_reporter.ts
@@ -1,5 +1,6 @@
import { logUtils } from '@0xproject/utils';
+// Makes an async function no-throw printing errors to the console
export function consoleReporter<T>(asyncFn: (arg: T) => Promise<void>) {
const noThrowFnAsync = async (arg: T) => {
try {