diff options
Diffstat (limited to 'packages/web3-wrapper/src')
-rw-r--r-- | packages/web3-wrapper/src/marshaller.ts | 3 | ||||
-rw-r--r-- | packages/web3-wrapper/src/utils.ts | 4 | ||||
-rw-r--r-- | packages/web3-wrapper/src/web3_wrapper.ts | 8 |
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; |