aboutsummaryrefslogtreecommitdiffstats
path: root/packages
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
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')
-rw-r--r--packages/web3-wrapper/src/marshaller.ts3
-rw-r--r--packages/web3-wrapper/src/utils.ts4
-rw-r--r--packages/web3-wrapper/src/web3_wrapper.ts8
3 files changed, 4 insertions, 11 deletions
diff --git a/packages/web3-wrapper/src/marshaller.ts b/packages/web3-wrapper/src/marshaller.ts
index d0cf6ff2d..84c351387 100644
--- a/packages/web3-wrapper/src/marshaller.ts
+++ b/packages/web3-wrapper/src/marshaller.ts
@@ -1,4 +1,4 @@
-import { addressUtils, BigNumber } from '@0xproject/utils';
+import { addressUtils } from '@0xproject/utils';
import {
BlockParam,
BlockParamLiteral,
@@ -17,7 +17,6 @@ import * as _ from 'lodash';
import { utils } from './utils';
import {
- AbstractBlockRPC,
BlockWithoutTransactionDataRPC,
BlockWithTransactionDataRPC,
CallDataRPC,
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);
diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts
index 35ecc5244..d1e4c1edf 100644
--- a/packages/web3-wrapper/src/web3_wrapper.ts
+++ b/packages/web3-wrapper/src/web3_wrapper.ts
@@ -6,7 +6,6 @@ import {
BlockWithoutTransactionData,
BlockWithTransactionData,
CallData,
- ContractAbi,
FilterObject,
JSONRPCRequestPayload,
JSONRPCResponsePayload,
@@ -22,12 +21,7 @@ import {
import * as _ from 'lodash';
import { marshaller } from './marshaller';
-import {
- BlockWithoutTransactionDataRPC,
- BlockWithTransactionDataRPC,
- TransactionRPC,
- Web3WrapperErrors,
-} from './types';
+import { BlockWithoutTransactionDataRPC, BlockWithTransactionDataRPC, Web3WrapperErrors } from './types';
import { utils } from './utils';
const BASE_TEN = 10;