aboutsummaryrefslogtreecommitdiffstats
path: root/packages/base-contract/src/index.ts
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/base-contract/src/index.ts
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/base-contract/src/index.ts')
-rw-r--r--packages/base-contract/src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts
index a8e4ad2e2..73550ffd4 100644
--- a/packages/base-contract/src/index.ts
+++ b/packages/base-contract/src/index.ts
@@ -129,7 +129,8 @@ export class BaseContract {
if (abiDefinition.type !== AbiType.Function) {
return false;
}
- const abiFunctionSignature = abiUtils.getFunctionSignature(abiDefinition);
+ // tslint:disable-next-line:no-unnecessary-type-assertion
+ const abiFunctionSignature = abiUtils.getFunctionSignature(abiDefinition as MethodAbi);
if (abiFunctionSignature === functionSignature) {
return true;
}