aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/src
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2017-12-22 10:04:50 +0800
committerGitHub <noreply@github.com>2017-12-22 10:04:50 +0800
commitcbf06b2165715aaadf1afb6fb84040837a7a8827 (patch)
tree1fee6536a033352e2b45917d2a3d66ef4dbe79af /packages/connect/src
parente884eb9882246398eb576b809e2d18e589ec5f51 (diff)
parentf8cbfea4a19bb5f55a7450e7817281b986365431 (diff)
downloaddexon-sol-tools-cbf06b2165715aaadf1afb6fb84040837a7a8827.tar
dexon-sol-tools-cbf06b2165715aaadf1afb6fb84040837a7a8827.tar.gz
dexon-sol-tools-cbf06b2165715aaadf1afb6fb84040837a7a8827.tar.bz2
dexon-sol-tools-cbf06b2165715aaadf1afb6fb84040837a7a8827.tar.lz
dexon-sol-tools-cbf06b2165715aaadf1afb6fb84040837a7a8827.tar.xz
dexon-sol-tools-cbf06b2165715aaadf1afb6fb84040837a7a8827.tar.zst
dexon-sol-tools-cbf06b2165715aaadf1afb6fb84040837a7a8827.zip
Merge pull request #289 from 0xProject/fix/missingBigNumberConfigs
Add missing calls to bigNumberConfigs in packages where we are instan…
Diffstat (limited to 'packages/connect/src')
-rw-r--r--packages/connect/src/http_client.ts6
-rw-r--r--packages/connect/src/index.ts5
2 files changed, 5 insertions, 6 deletions
diff --git a/packages/connect/src/http_client.ts b/packages/connect/src/http_client.ts
index 3bada2be0..924421f63 100644
--- a/packages/connect/src/http_client.ts
+++ b/packages/connect/src/http_client.ts
@@ -1,6 +1,5 @@
import {assert} from '@0xproject/assert';
import {schemas} from '@0xproject/json-schemas';
-import {BigNumber} from 'bignumber.js';
import 'isomorphic-fetch';
import * as _ from 'lodash';
import * as queryString from 'query-string';
@@ -21,11 +20,6 @@ import {
} from './types';
import {typeConverters} from './utils/type_converters';
-// TODO: move this and bigNumberConfigs in the 0x.js package into one place
-BigNumber.config({
- EXPONENTIAL_AT: 1000,
-});
-
/**
* This class includes all the functionality related to interacting with a set of HTTP endpoints
* that implement the standard relayer API v0
diff --git a/packages/connect/src/index.ts b/packages/connect/src/index.ts
index ec369a606..c0f847d09 100644
--- a/packages/connect/src/index.ts
+++ b/packages/connect/src/index.ts
@@ -1,3 +1,8 @@
+import {bigNumberConfigs} from '@0xproject/utils';
+
+// Customize our BigNumber instances
+bigNumberConfigs.configure();
+
export {HttpClient} from './http_client';
export {WebSocketOrderbookChannel} from './ws_orderbook_channel';
export {