aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper/src/utils.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-05 07:45:56 +0800
committerFabio Berger <me@fabioberger.com>2018-07-05 07:45:56 +0800
commitf5b1fe0e6b47e18e10ca42f734639482c5a03239 (patch)
treece4fb3f93cf71bc972544f261a5c8a96cae96266 /packages/web3-wrapper/src/utils.ts
parent139d289b017e9d3781d84ff998104e1a0df660ad (diff)
downloaddexon-sol-tools-f5b1fe0e6b47e18e10ca42f734639482c5a03239.tar
dexon-sol-tools-f5b1fe0e6b47e18e10ca42f734639482c5a03239.tar.gz
dexon-sol-tools-f5b1fe0e6b47e18e10ca42f734639482c5a03239.tar.bz2
dexon-sol-tools-f5b1fe0e6b47e18e10ca42f734639482c5a03239.tar.lz
dexon-sol-tools-f5b1fe0e6b47e18e10ca42f734639482c5a03239.tar.xz
dexon-sol-tools-f5b1fe0e6b47e18e10ca42f734639482c5a03239.tar.zst
dexon-sol-tools-f5b1fe0e6b47e18e10ca42f734639482c5a03239.zip
Fix linter issues
Diffstat (limited to 'packages/web3-wrapper/src/utils.ts')
-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 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);