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 | |
parent | d186f6148bd44701dcc41d6b1633aae9baff2234 (diff) | |
download | dexon-0x-contracts-4bee63afc69b10ee5a9a4aa9279a926068a37242.tar.gz dexon-0x-contracts-4bee63afc69b10ee5a9a4aa9279a926068a37242.tar.zst dexon-0x-contracts-4bee63afc69b10ee5a9a4aa9279a926068a37242.zip |
Interface for EventDescription renamed topics
Diffstat (limited to 'packages')
-rw-r--r-- | packages/typescript-typings/types/ethers/index.d.ts | 2 | ||||
-rw-r--r-- | packages/utils/src/abi_decoder.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/typescript-typings/types/ethers/index.d.ts b/packages/typescript-typings/types/ethers/index.d.ts index 313e8eb8a..a3d27a98c 100644 --- a/packages/typescript-typings/types/ethers/index.d.ts +++ b/packages/typescript-typings/types/ethers/index.d.ts @@ -18,7 +18,7 @@ declare module 'ethers' { parse: (...args: any[]) => any; inputs: { names: string[]; types: string[] }; signature: string; - topic: string; + topics: string[]; } export class Interface { public functions: { [functionName: string]: FunctionDescription }; 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; } }); |