aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/typed-contracts/src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/typed-contracts/src/index.ts b/packages/typed-contracts/src/index.ts
index bbb527574..0a74e1594 100644
--- a/packages/typed-contracts/src/index.ts
+++ b/packages/typed-contracts/src/index.ts
@@ -15,6 +15,7 @@ import {ParamKind} from './types';
import {utils} from './utils';
const ABI_TYPE_METHOD = 'function';
+const MAIN_TEMPLATE_NAME = 'contract.mustache';
const args = yargs
.option('abiGlob', {
@@ -49,7 +50,7 @@ for (const partialTemplateFileName of partialTemplateFileNames) {
Handlebars.registerPartial(namedContent.name, namedContent.content);
}
-const mainTemplate = utils.getNamedContent(`${args.templates}/contract.mustache`);
+const mainTemplate = utils.getNamedContent(`${args.templates}/${MAIN_TEMPLATE_NAME}`);
const template = Handlebars.compile(mainTemplate.content);
const abiFileNames = globSync(args.abiGlob);
if (_.isEmpty(abiFileNames)) {