From d5bbbe802b06c6124c57f204deddbb71f9381bcf Mon Sep 17 00:00:00 2001 From: Lawrence Forman Date: Thu, 19 Sep 2019 03:21:34 -0400 Subject: [PATCH] `@0x/base-contract`: Fix linter errors. --- packages/base-contract/src/utils/filter_utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/base-contract/src/utils/filter_utils.ts b/packages/base-contract/src/utils/filter_utils.ts index fce4579726..db6077c5e6 100644 --- a/packages/base-contract/src/utils/filter_utils.ts +++ b/packages/base-contract/src/utils/filter_utils.ts @@ -52,11 +52,13 @@ export const filterUtils = { // Null is a wildcard topic in a JSON-RPC call topics.push(null); } else { + // tslint:disable: no-unnecessary-type-assertion let value = indexFilterValues[eventInput.name] as any; if (BigNumber.isBigNumber(value)) { // tslint:disable-next-line custom-no-magic-numbers value = ethUtil.fromSigned(value.toString(10) as any); } + // tslint:enable: no-unnecessary-type-assertion const buffer = ethUtil.toBuffer(value); const paddedBuffer = ethUtil.setLengthLeft(buffer, TOPIC_LENGTH); const topic = ethUtil.bufferToHex(paddedBuffer);