diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-18 00:18:00 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-18 00:18:00 +0800 |
commit | a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9 (patch) | |
tree | 375d40abd663f230b31dd89ca91cfe2067b3e5ac /packages | |
parent | f7de26f65c4aebcf5d27dab07f4b75081b48d7ac (diff) | |
download | dexon-0x-contracts-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar dexon-0x-contracts-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.gz dexon-0x-contracts-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.bz2 dexon-0x-contracts-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.lz dexon-0x-contracts-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.xz dexon-0x-contracts-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.tar.zst dexon-0x-contracts-a31f3b542f96b0a332c9b6424d5bf21f5a4dd8b9.zip |
Add necessary cast
Diffstat (limited to 'packages')
-rw-r--r-- | packages/base-contract/src/index.ts | 3 |
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; } |