diff options
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); |