Add BigNumber[] support in ContractEventArg

Currently, my contract has events that take a BigNumber array and typescript complains that ContractEventArg does not support this.
This commit is contained in:
Philippe Castonguay
2018-09-19 20:17:00 -04:00
committed by GitHub
parent 3e70ab015b
commit abd308455a

View File

@@ -238,7 +238,7 @@ export enum AbiType {
Fallback = 'fallback',
}
export type ContractEventArg = string | BigNumber | number | boolean;
export type ContractEventArg = string | BigNumber | BigNumber[] |number | boolean;
export interface DecodedLogArgs {
[argName: string]: ContractEventArg;