Add necessary cast

This commit is contained in:
Fabio Berger 2018-10-17 17:18:00 +01:00
parent f7de26f65c
commit a31f3b542f

View File

@ -1,5 +1,6 @@
import { abiUtils, BigNumber } from '@0xproject/utils'; import { abiUtils, BigNumber } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper'; import { Web3Wrapper } from '@0xproject/web3-wrapper';
import { FunctionAbi } from 'ethereum-protocol';
import { import {
AbiDefinition, AbiDefinition,
AbiType, AbiType,
@ -129,7 +130,7 @@ export class BaseContract {
if (abiDefinition.type !== AbiType.Function) { if (abiDefinition.type !== AbiType.Function) {
return false; return false;
} }
const abiFunctionSignature = abiUtils.getFunctionSignature(abiDefinition); const abiFunctionSignature = abiUtils.getFunctionSignature(abiDefinition as MethodAbi);
if (abiFunctionSignature === functionSignature) { if (abiFunctionSignature === functionSignature) {
return true; return true;
} }