aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-04 23:31:46 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-04 23:31:46 +0800
commit326a6b729fe6cf96f0b4787d84903282738b6863 (patch)
treea5b7a3281fde2f27074c91d3d02e091e429534a2 /packages/abi-gen
parente2ef0c5b9419fa1536a1b7e478f7950e69e8ff0e (diff)
downloaddexon-sol-tools-326a6b729fe6cf96f0b4787d84903282738b6863.tar
dexon-sol-tools-326a6b729fe6cf96f0b4787d84903282738b6863.tar.gz
dexon-sol-tools-326a6b729fe6cf96f0b4787d84903282738b6863.tar.bz2
dexon-sol-tools-326a6b729fe6cf96f0b4787d84903282738b6863.tar.lz
dexon-sol-tools-326a6b729fe6cf96f0b4787d84903282738b6863.tar.xz
dexon-sol-tools-326a6b729fe6cf96f0b4787d84903282738b6863.tar.zst
dexon-sol-tools-326a6b729fe6cf96f0b4787d84903282738b6863.zip
Fix prettier
Diffstat (limited to 'packages/abi-gen')
-rw-r--r--packages/abi-gen/src/utils.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/abi-gen/src/utils.ts b/packages/abi-gen/src/utils.ts
index f407ae23d..edda016b5 100644
--- a/packages/abi-gen/src/utils.ts
+++ b/packages/abi-gen/src/utils.ts
@@ -10,7 +10,9 @@ export const utils = {
if (solType.match(trailingArrayRegex)) {
const arrayItemSolType = solType.replace(trailingArrayRegex, '');
const arrayItemTsType = utils.solTypeToTsType(paramKind, arrayItemSolType);
- const arrayTsType = utils.isUnionType(arrayItemTsType) ? `Array<${arrayItemTsType}>` : `${arrayItemTsType}[]`;
+ const arrayTsType = utils.isUnionType(arrayItemTsType)
+ ? `Array<${arrayItemTsType}>`
+ : `${arrayItemTsType}[]`;
return arrayTsType;
} else {
const solTypeRegexToTsType = [