diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-05 07:45:56 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-05 07:45:56 +0800 |
commit | f5b1fe0e6b47e18e10ca42f734639482c5a03239 (patch) | |
tree | ce4fb3f93cf71bc972544f261a5c8a96cae96266 /packages/web3-wrapper/src/utils.ts | |
parent | 139d289b017e9d3781d84ff998104e1a0df660ad (diff) | |
download | dexon-0x-contracts-f5b1fe0e6b47e18e10ca42f734639482c5a03239.tar.gz dexon-0x-contracts-f5b1fe0e6b47e18e10ca42f734639482c5a03239.tar.zst dexon-0x-contracts-f5b1fe0e6b47e18e10ca42f734639482c5a03239.zip |
Fix linter issues
Diffstat (limited to 'packages/web3-wrapper/src/utils.ts')
-rw-r--r-- | packages/web3-wrapper/src/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/web3-wrapper/src/utils.ts b/packages/web3-wrapper/src/utils.ts index ddb177d91..d13eb9404 100644 --- a/packages/web3-wrapper/src/utils.ts +++ b/packages/web3-wrapper/src/utils.ts @@ -3,7 +3,7 @@ import * as _ from 'lodash'; export const utils = { isBigNumber(value: any): boolean { - const isBigNumber = _.isObject(value) && (value as any).isBigNumber; + const isBigNumber = _.isObject(value) && value.isBigNumber; return isBigNumber; }, convertHexToNumber(value: string): number { @@ -41,7 +41,7 @@ export const utils = { }, numberToHex(value: number): string { if (!isFinite(value) && !this.isHexStrict(value)) { - throw new Error('Given input "' + value + '" is not a number.'); + throw new Error(`Given input ${value} is not a number.`); } const valueBigNumber = new BigNumber(value); |