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 From 90e28220fafe3912e86502a5d8af50972680900f Mon Sep 17 00:00:00 2001 From: Philippe Castonguay Date: Thu, 20 Sep 2018 16:19:08 -0400 Subject: Set ContractEventArg type definition to `any` --- 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 f57d4d6e6..8f8f4b7e6 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 | BigNumber[] |number | boolean; +export type ContractEventArg = any; export interface DecodedLogArgs { [argName: string]: ContractEventArg; -- cgit