aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/typed-contracts/src/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/typed-contracts/src/utils.ts b/packages/typed-contracts/src/utils.ts
index 0600188a1..f95da5393 100644
--- a/packages/typed-contracts/src/utils.ts
+++ b/packages/typed-contracts/src/utils.ts
@@ -42,7 +42,7 @@ export const utils = {
return name;
},
getNamedContent(filename: string): {name: string; content: string} {
- const name = path.parse(filename).name;
+ const name = utils.getPartialNameFromFileName(filename);
try {
const content = fs.readFileSync(filename).toString();
return {