diff options
author | Jacob Evans <jacob@dekz.net> | 2018-04-19 14:11:10 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-04-19 14:28:46 +0800 |
commit | 4bee63afc69b10ee5a9a4aa9279a926068a37242 (patch) | |
tree | 2ddaa7061aca1ceea6a802db23e8bdafa73de5ff /packages/utils | |
parent | d186f6148bd44701dcc41d6b1633aae9baff2234 (diff) | |
download | dexon-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')
-rw-r--r-- | packages/utils/src/abi_decoder.ts | 2 |
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; } }); |