aboutsummaryrefslogtreecommitdiffstats
path: root/packages/abi-gen/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-03 19:05:44 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-03 19:05:44 +0800
commit94c75b5262a4837490de33d0968462d6b46546b6 (patch)
tree2f1a5e29dadfa3866ce02d6e7b6b57ef4d004d07 /packages/abi-gen/src
parenteb0dd6b6e99e9c80060923ceb648ec13ac54816a (diff)
downloaddexon-sol-tools-94c75b5262a4837490de33d0968462d6b46546b6.tar
dexon-sol-tools-94c75b5262a4837490de33d0968462d6b46546b6.tar.gz
dexon-sol-tools-94c75b5262a4837490de33d0968462d6b46546b6.tar.bz2
dexon-sol-tools-94c75b5262a4837490de33d0968462d6b46546b6.tar.lz
dexon-sol-tools-94c75b5262a4837490de33d0968462d6b46546b6.tar.xz
dexon-sol-tools-94c75b5262a4837490de33d0968462d6b46546b6.tar.zst
dexon-sol-tools-94c75b5262a4837490de33d0968462d6b46546b6.zip
Add #302 description to changelog
Diffstat (limited to 'packages/abi-gen/src')
-rw-r--r--packages/abi-gen/src/index.ts2
-rw-r--r--packages/abi-gen/src/types.ts1
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/abi-gen/src/index.ts b/packages/abi-gen/src/index.ts
index bcb4a468b..ed71087b2 100644
--- a/packages/abi-gen/src/index.ts
+++ b/packages/abi-gen/src/index.ts
@@ -91,7 +91,7 @@ for (const abiFileName of abiFileNames) {
return methodData;
});
- const eventAbis = ABI.filter((abi: Web3.AbiDefinition) => abi.type === ABI_TYPE_EVENT) as Web3.MethodAbi[];
+ const eventAbis = ABI.filter((abi: Web3.AbiDefinition) => abi.type === ABI_TYPE_EVENT) as Web3.EventAbi[];
const contextData = {
contractName: namedContent.name,
diff --git a/packages/abi-gen/src/types.ts b/packages/abi-gen/src/types.ts
index 1dc039c83..8b158d77a 100644
--- a/packages/abi-gen/src/types.ts
+++ b/packages/abi-gen/src/types.ts
@@ -12,4 +12,5 @@ export interface Method extends Web3.MethodAbi {
export interface ContextData {
contractName: string;
methods: Method[];
+ events: Web3.EventAbi[];
}