aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 05:40:14 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-02-07 09:27:47 +0800
commitb61852b1f5501efd357e61c5478f25b68455dc38 (patch)
tree6e5adf339515e4d5c31952a2bb0af1bc3cfcf34b /packages/abi-gen
parentfcbe24a1263e189aad8f2698043217e6ed6488b3 (diff)
downloaddexon-sol-tools-b61852b1f5501efd357e61c5478f25b68455dc38.tar.gz
dexon-sol-tools-b61852b1f5501efd357e61c5478f25b68455dc38.tar.zst
dexon-sol-tools-b61852b1f5501efd357e61c5478f25b68455dc38.zip
Special-case ZRXToken snake case conversion
Diffstat (limited to 'packages/abi-gen')
-rw-r--r--packages/abi-gen/src/index.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/abi-gen/src/index.ts b/packages/abi-gen/src/index.ts
index 46d41861d..68beb2352 100644
--- a/packages/abi-gen/src/index.ts
+++ b/packages/abi-gen/src/index.ts
@@ -64,7 +64,10 @@ function registerPartials(partialsGlob: string) {
}
function writeOutputFile(name: string, renderedTsCode: string): void {
- const fileName = toSnakeCase(name);
+ let fileName = toSnakeCase(name);
+ if (fileName === 'z_r_x_token') {
+ fileName = 'zrx_token';
+ }
const filePath = `${args.output}/${fileName}.ts`;
fs.writeFileSync(filePath, renderedTsCode);
utils.log(`Created: ${chalk.bold(filePath)}`);