Add necessary cast
This commit is contained in:
parent
f7de26f65c
commit
a31f3b542f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user