aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/contracts-gen/src/contracts-gen.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/contracts-gen/src/contracts-gen.ts b/packages/contracts-gen/src/contracts-gen.ts
index 0695d9c98..0160a8204 100644
--- a/packages/contracts-gen/src/contracts-gen.ts
+++ b/packages/contracts-gen/src/contracts-gen.ts
@@ -14,7 +14,11 @@ const SOLIDITY_EXTENSION = '.sol';
const DEFAULT_ARTIFACTS_DIR = 'artifacts';
const DEFAULT_CONTRACTS_DIR = 'contracts';
const DEFAULT_WRAPPERS_DIR = 'generated-wrappers';
-const AUTO_GENERATED_BANNER = `This file is auto-generated by contracts-gen. Don't edit manually.`;
+const AUTO_GENERATED_BANNER = `/*
+* -----------------------------------------------------------------------------
+* Warning: This file is auto-generated by contracts-gen. Don't edit manually.
+* -----------------------------------------------------------------------------
+*/`;
const AUTO_GENERATED_BANNER_FOR_LISTS = `This list is auto-generated by contracts-gen. Don't edit manually.`;
(async () => {
@@ -82,7 +86,7 @@ function generateArtifactsTs(contracts: string[], artifactsDir: string, prettier
}
});
const artifactsTs = `
- // ${AUTO_GENERATED_BANNER}
+ ${AUTO_GENERATED_BANNER}
import { ContractArtifact } from 'ethereum-types';
${sortedImports.join('\n')}
@@ -102,7 +106,7 @@ function generateWrappersTs(contracts: string[], wrappersDir: string, prettierCo
});
const sortedImports = _.sortBy(imports);
const wrappersTs = `
- // ${AUTO_GENERATED_BANNER}
+ ${AUTO_GENERATED_BANNER}
${sortedImports.join('\n')}
`;
const WRAPPERS_TS_FILE_PATH = 'src/wrappers.ts';