aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2018-01-03 19:07:31 +0800
committerGitHub <noreply@github.com>2018-01-03 19:07:31 +0800
commit807e908f7896da69ebc111457db229ccc5b3378e (patch)
tree0487eecc7d513c796ed7c6c6f8392275b677ad4a /packages
parent94c75b5262a4837490de33d0968462d6b46546b6 (diff)
parent31c9c82f6c00c890c4676d7fc8744d17d810db8b (diff)
downloaddexon-0x-contracts-807e908f7896da69ebc111457db229ccc5b3378e.tar
dexon-0x-contracts-807e908f7896da69ebc111457db229ccc5b3378e.tar.gz
dexon-0x-contracts-807e908f7896da69ebc111457db229ccc5b3378e.tar.bz2
dexon-0x-contracts-807e908f7896da69ebc111457db229ccc5b3378e.tar.lz
dexon-0x-contracts-807e908f7896da69ebc111457db229ccc5b3378e.tar.xz
dexon-0x-contracts-807e908f7896da69ebc111457db229ccc5b3378e.tar.zst
dexon-0x-contracts-807e908f7896da69ebc111457db229ccc5b3378e.zip
Merge pull request #295 from dharmaprotocol/fix-array-typing-generation
Fix array typing generation when permitting multiple types
Diffstat (limited to 'packages')
-rw-r--r--packages/abi-gen/src/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/abi-gen/src/utils.ts b/packages/abi-gen/src/utils.ts
index 55e77f27d..764daa142 100644
--- a/packages/abi-gen/src/utils.ts
+++ b/packages/abi-gen/src/utils.ts
@@ -10,7 +10,7 @@ export const utils = {
if (solType.match(trailingArrayRegex)) {
const arrayItemSolType = solType.replace(trailingArrayRegex, '');
const arrayItemTsType = utils.solTypeToTsType(paramKind, arrayItemSolType);
- const arrayTsType = `${arrayItemTsType}[]`;
+ const arrayTsType = `(${arrayItemTsType})[]`;
return arrayTsType;
} else {
const solTypeRegexToTsType = [