aboutsummaryrefslogtreecommitdiffstats
path: root/packages/base-contract/src/index.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-18 00:18:00 +0800
committerFabio Berger <me@fabioberger.com>2018-10-18 00:18:00 +0800
commita31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9 (patch)
tree375d40abd663f230b31dd89ca91cfe2067b3e5ac /packages/base-contract/src/index.ts
parentf7de26f65c4aebcf5d27dab07f4b75081b48d7ac (diff)
downloaddexon-sol-tools-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar
dexon-sol-tools-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.gz
dexon-sol-tools-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.bz2
dexon-sol-tools-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.lz
dexon-sol-tools-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.xz
dexon-sol-tools-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.zst
dexon-sol-tools-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.zip
Add necessary cast
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..354362d45 100644
--- a/packages/base-contract/src/index.ts
+++ b/packages/base-contract/src/index.ts
@@ -1,5 +1,6 @@
import { abiUtils, BigNumber } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
+import { FunctionAbi } from 'ethereum-protocol';
import {
AbiDefinition,
AbiType,
@@ -129,7 +130,7 @@ export class BaseContract {
if (abiDefinition.type !== AbiType.Function) {
return false;
}
- const abiFunctionSignature = abiUtils.getFunctionSignature(abiDefinition);
+ const abiFunctionSignature = abiUtils.getFunctionSignature(abiDefinition as MethodAbi);
if (abiFunctionSignature === functionSignature) {
return true;
}