@0x/contracts-erc20-bridge-sampler: Clean up linter workaround in tests.

This commit is contained in:
Lawrence Forman 2019-11-25 17:55:12 -05:00
parent a8e93a594d
commit 1462ab08de

View File

@ -81,9 +81,10 @@ blockchainTests('erc20-bridge-sampler', env => {
if (token === WETH_ADDRESS) {
return 18;
}
return (
(new BigNumber(getPackedHash(token)).mod(MAX_DECIMALS - MIN_DECIMALS).toNumber() as number) + MIN_DECIMALS // linter is confused
);
// HACK(dorothy-zbornak): Linter will complain about the addition not being
// between two numbers, even though they are.
// tslint:disable-next-line restrict-plus-operands
return new BigNumber(getPackedHash(token)).mod(MAX_DECIMALS - MIN_DECIMALS).toNumber() + MIN_DECIMALS;
}
function getDeterministicSellQuote(