aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/abi_decoder.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-18 01:23:06 +0800
committerFabio Berger <me@fabioberger.com>2018-10-18 01:23:06 +0800
commitbdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295 (patch)
treef76f4ec6147580eb1dd5d70207c8360e7e2f5413 /packages/utils/src/abi_decoder.ts
parent87fabbb943779d868d29c437f078a341cb177b2b (diff)
downloaddexon-sol-tools-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar
dexon-sol-tools-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.gz
dexon-sol-tools-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.bz2
dexon-sol-tools-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.lz
dexon-sol-tools-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.xz
dexon-sol-tools-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.tar.zst
dexon-sol-tools-bdae4ba2a2c9b7b3b41c352c628cb11cd4a1f295.zip
chore: tslint fix
Diffstat (limited to 'packages/utils/src/abi_decoder.ts')
-rw-r--r--packages/utils/src/abi_decoder.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/utils/src/abi_decoder.ts b/packages/utils/src/abi_decoder.ts
index 9cc863909..c0b2c7950 100644
--- a/packages/utils/src/abi_decoder.ts
+++ b/packages/utils/src/abi_decoder.ts
@@ -99,6 +99,7 @@ export class AbiDecoder {
const ethersInterface = new ethers.utils.Interface(abiArray);
_.map(abiArray, (abi: AbiDefinition) => {
if (abi.type === AbiType.Event) {
+ // tslint:disable-next-line:no-unnecessary-type-assertion
const eventAbi = abi as EventAbi;
const topic = ethersInterface.events[eventAbi.name].topic;
const numIndexedArgs = _.reduce(eventAbi.inputs, (sum, input) => (input.indexed ? sum + 1 : sum), 0);