@0x/base-contract
: Fix linter errors.
This commit is contained in:
parent
b43fa88606
commit
d5bbbe802b
@ -52,11 +52,13 @@ export const filterUtils = {
|
|||||||
// Null is a wildcard topic in a JSON-RPC call
|
// Null is a wildcard topic in a JSON-RPC call
|
||||||
topics.push(null);
|
topics.push(null);
|
||||||
} else {
|
} else {
|
||||||
|
// tslint:disable: no-unnecessary-type-assertion
|
||||||
let value = indexFilterValues[eventInput.name] as any;
|
let value = indexFilterValues[eventInput.name] as any;
|
||||||
if (BigNumber.isBigNumber(value)) {
|
if (BigNumber.isBigNumber(value)) {
|
||||||
// tslint:disable-next-line custom-no-magic-numbers
|
// tslint:disable-next-line custom-no-magic-numbers
|
||||||
value = ethUtil.fromSigned(value.toString(10) as any);
|
value = ethUtil.fromSigned(value.toString(10) as any);
|
||||||
}
|
}
|
||||||
|
// tslint:enable: no-unnecessary-type-assertion
|
||||||
const buffer = ethUtil.toBuffer(value);
|
const buffer = ethUtil.toBuffer(value);
|
||||||
const paddedBuffer = ethUtil.setLengthLeft(buffer, TOPIC_LENGTH);
|
const paddedBuffer = ethUtil.setLengthLeft(buffer, TOPIC_LENGTH);
|
||||||
const topic = ethUtil.bufferToHex(paddedBuffer);
|
const topic = ethUtil.bufferToHex(paddedBuffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user