diff options
author | Philippe Castonguay <ph.castonguay@gmail.com> | 2018-09-20 08:17:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 08:17:00 +0800 |
commit | abd308455abb1eb1bdb739e0b4c86887c573dc45 (patch) | |
tree | ccdd65b1379427073e8089e3be6a16f54856240d /packages | |
parent | 3e70ab015ba2cf00064c985c0b76137b182abf7f (diff) | |
download | dexon-sol-tools-abd308455abb1eb1bdb739e0b4c86887c573dc45.tar dexon-sol-tools-abd308455abb1eb1bdb739e0b4c86887c573dc45.tar.gz dexon-sol-tools-abd308455abb1eb1bdb739e0b4c86887c573dc45.tar.bz2 dexon-sol-tools-abd308455abb1eb1bdb739e0b4c86887c573dc45.tar.lz dexon-sol-tools-abd308455abb1eb1bdb739e0b4c86887c573dc45.tar.xz dexon-sol-tools-abd308455abb1eb1bdb739e0b4c86887c573dc45.tar.zst dexon-sol-tools-abd308455abb1eb1bdb739e0b4c86887c573dc45.zip |
Add BigNumber[] support in ContractEventArg
Currently, my contract has events that take a BigNumber array and typescript complains that ContractEventArg does not support this.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/ethereum-types/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; |