aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-04-19 14:11:10 +0800
committerJacob Evans <jacob@dekz.net>2018-04-19 14:28:46 +0800
commit4bee63afc69b10ee5a9a4aa9279a926068a37242 (patch)
tree2ddaa7061aca1ceea6a802db23e8bdafa73de5ff /packages/utils/src
parentd186f6148bd44701dcc41d6b1633aae9baff2234 (diff)
downloaddexon-sol-tools-4bee63afc69b10ee5a9a4aa9279a926068a37242.tar
dexon-sol-tools-4bee63afc69b10ee5a9a4aa9279a926068a37242.tar.gz
dexon-sol-tools-4bee63afc69b10ee5a9a4aa9279a926068a37242.tar.bz2
dexon-sol-tools-4bee63afc69b10ee5a9a4aa9279a926068a37242.tar.lz
dexon-sol-tools-4bee63afc69b10ee5a9a4aa9279a926068a37242.tar.xz
dexon-sol-tools-4bee63afc69b10ee5a9a4aa9279a926068a37242.tar.zst
dexon-sol-tools-4bee63afc69b10ee5a9a4aa9279a926068a37242.zip
Interface for EventDescription renamed topics
Diffstat (limited to 'packages/utils/src')
-rw-r--r--packages/utils/src/abi_decoder.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/utils/src/abi_decoder.ts b/packages/utils/src/abi_decoder.ts
index cb3052a33..150f74a15 100644
--- a/packages/utils/src/abi_decoder.ts
+++ b/packages/utils/src/abi_decoder.ts
@@ -80,7 +80,7 @@ export class AbiDecoder {
const ethersInterface = new ethers.Interface(abiArray);
_.map(abiArray, (abi: AbiDefinition) => {
if (abi.type === AbiType.Event) {
- const topic = ethersInterface.events[abi.name].topic;
+ const topic = ethersInterface.events[abi.name].topics[0];
this._methodIds[topic] = abi;
}
});