aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-05 22:11:07 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-05 22:11:07 +0800
commitc53d195ed0bc230badeffa64c963c9ab4c88f205 (patch)
tree45141829e4828fca23beabcabb1dc430e14e43d7 /packages
parent9b1c9ecb8b32e7c3db034243996c0a577cd3359b (diff)
downloaddexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.tar.gz
dexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.tar.zst
dexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.zip
Reuse util
Diffstat (limited to 'packages')
-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 {