diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 22:11:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 22:11:07 +0800 |
commit | c53d195ed0bc230badeffa64c963c9ab4c88f205 (patch) | |
tree | 45141829e4828fca23beabcabb1dc430e14e43d7 | |
parent | 9b1c9ecb8b32e7c3db034243996c0a577cd3359b (diff) | |
download | dexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.tar dexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.tar.gz dexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.tar.bz2 dexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.tar.lz dexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.tar.xz dexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.tar.zst dexon-sol-tools-c53d195ed0bc230badeffa64c963c9ab4c88f205.zip |
Reuse util
-rw-r--r-- | packages/typed-contracts/src/utils.ts | 2 |
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 { |