From abd308455abb1eb1bdb739e0b4c86887c573dc45 Mon Sep 17 00:00:00 2001 From: Philippe Castonguay Date: Wed, 19 Sep 2018 20:17:00 -0400 Subject: Add BigNumber[] support in ContractEventArg Currently, my contract has events that take a BigNumber array and typescript complains that ContractEventArg does not support this. --- packages/ethereum-types/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ethereum-types/src/index.ts b/packages/ethereum-types/src/index.ts index 3b6fdc77b..f57d4d6e6 100644 --- a/packages/ethereum-types/src/index.ts +++ b/packages/ethereum-types/src/index.ts @@ -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; -- cgit v1.2.3