aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorPhilippe Castonguay <ph.castonguay@gmail.com>2018-09-20 08:17:00 +0800
committerGitHub <noreply@github.com>2018-09-20 08:17:00 +0800
commitabd308455abb1eb1bdb739e0b4c86887c573dc45 (patch)
treeccdd65b1379427073e8089e3be6a16f54856240d /packages
parent3e70ab015ba2cf00064c985c0b76137b182abf7f (diff)
downloaddexon-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.ts2
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;