aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler
diff options
context:
space:
mode:
authorKadinsky <kandinsky454@protonmail.ch>2018-10-18 02:01:29 +0800
committerGitHub <noreply@github.com>2018-10-18 02:01:29 +0800
commit5ec4b27200297708298deca97603849a37b2f66a (patch)
tree96c28898329c3bf786a08549384f2de79d0903f8 /packages/sol-compiler
parentb2012bf1610eda65afe180b04df6c9ee8f5dc659 (diff)
parentbdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295 (diff)
downloaddexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar
dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.gz
dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.bz2
dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.lz
dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.xz
dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.tar.zst
dexon-sol-tools-5ec4b27200297708298deca97603849a37b2f66a.zip
Merge pull request #1145 from 0xProject/refactorSchemasToJSON
Move json-schema schemas to JSON files
Diffstat (limited to 'packages/sol-compiler')
-rw-r--r--packages/sol-compiler/package.json2
-rw-r--r--packages/sol-compiler/src/utils/encoder.ts6
2 files changed, 5 insertions, 3 deletions
diff --git a/packages/sol-compiler/package.json b/packages/sol-compiler/package.json
index 9ee88a5ef..828ce1dbc 100644
--- a/packages/sol-compiler/package.json
+++ b/packages/sol-compiler/package.json
@@ -58,7 +58,7 @@
"nyc": "^11.0.1",
"shx": "^0.2.2",
"tslint": "5.11.0",
- "typedoc": "0.12.0",
+ "typedoc": "0.13.0",
"types-bn": "^0.0.1",
"typescript": "3.0.1",
"web3-typescript-typings": "^0.10.2",
diff --git a/packages/sol-compiler/src/utils/encoder.ts b/packages/sol-compiler/src/utils/encoder.ts
index 0f2d75691..40b103fd5 100644
--- a/packages/sol-compiler/src/utils/encoder.ts
+++ b/packages/sol-compiler/src/utils/encoder.ts
@@ -1,4 +1,4 @@
-import { AbiDefinition, AbiType, ContractAbi, DataItem } from 'ethereum-types';
+import { AbiDefinition, AbiType, ConstructorAbi, ContractAbi, DataItem } from 'ethereum-types';
import * as _ from 'lodash';
import * as web3Abi from 'web3-eth-abi';
@@ -7,7 +7,9 @@ export const encoder = {
const constructorTypes: string[] = [];
_.each(abi, (element: AbiDefinition) => {
if (element.type === AbiType.Constructor) {
- _.each(element.inputs, (input: DataItem) => {
+ // tslint:disable-next-line:no-unnecessary-type-assertion
+ const constuctorAbi = element as ConstructorAbi;
+ _.each(constuctorAbi.inputs, (input: DataItem) => {
constructorTypes.push(input.type);
});
}