aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-10-01 23:30:23 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-10-02 21:09:24 +0800
commit8c985eb579803692cb696ee0028bd132345cfd8e (patch)
tree95344c7355e3e75c116f620bc562c4b0306b82a5 /packages/web3-wrapper
parent3a93c8a6e08666ac6c737e1da363ee04188174a7 (diff)
downloaddexon-0x-contracts-8c985eb579803692cb696ee0028bd132345cfd8e.tar.gz
dexon-0x-contracts-8c985eb579803692cb696ee0028bd132345cfd8e.tar.zst
dexon-0x-contracts-8c985eb579803692cb696ee0028bd132345cfd8e.zip
Fix linter issue
Diffstat (limited to 'packages/web3-wrapper')
-rw-r--r--packages/web3-wrapper/src/utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/web3-wrapper/src/utils.ts b/packages/web3-wrapper/src/utils.ts
index 01605dc9a..0b568aac5 100644
--- a/packages/web3-wrapper/src/utils.ts
+++ b/packages/web3-wrapper/src/utils.ts
@@ -37,7 +37,7 @@ export const utils = {
const hexBase = 16;
const valueHex = valueBigNumber.toString(hexBase);
- return valueBigNumber.lessThan(0) ? '-0x' + valueHex.substr(1) : '0x' + valueHex;
+ return valueBigNumber.lessThan(0) ? `-0x${valueHex.substr(1)}` : `0x${valueHex}`;
},
numberToHex(value: number): string {
if (!isFinite(value) && !utils.isHexStrict(value)) {
@@ -48,7 +48,7 @@ export const utils = {
const hexBase = 16;
const result = valueBigNumber.toString(hexBase);
- return valueBigNumber.lt(0) ? '-0x' + result.substr(1) : '0x' + result;
+ return valueBigNumber.lt(0) ? `-0x${result.substr(1)}` : `0x${result}`;
},
isHexStrict(hex: string | number): boolean {
return (