diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2017-12-22 03:44:09 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2017-12-22 03:55:55 +0800 |
commit | 12dc8c0d158517b77ac548e0f102a45068f2f5e3 (patch) | |
tree | eba62c8a6e87a418973e6a5afcaeb026ff30c244 /packages/connect/src | |
parent | cb3582289ff94857d5956bbd71dbf68ee3f42ecf (diff) | |
download | dexon-sol-tools-12dc8c0d158517b77ac548e0f102a45068f2f5e3.tar dexon-sol-tools-12dc8c0d158517b77ac548e0f102a45068f2f5e3.tar.gz dexon-sol-tools-12dc8c0d158517b77ac548e0f102a45068f2f5e3.tar.bz2 dexon-sol-tools-12dc8c0d158517b77ac548e0f102a45068f2f5e3.tar.lz dexon-sol-tools-12dc8c0d158517b77ac548e0f102a45068f2f5e3.tar.xz dexon-sol-tools-12dc8c0d158517b77ac548e0f102a45068f2f5e3.tar.zst dexon-sol-tools-12dc8c0d158517b77ac548e0f102a45068f2f5e3.zip |
Add missing calls to bigNumberConfigs in packages where we are instantiating BigNumbers
Diffstat (limited to 'packages/connect/src')
-rw-r--r-- | packages/connect/src/http_client.ts | 5 | ||||
-rw-r--r-- | packages/connect/src/index.ts | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/connect/src/http_client.ts b/packages/connect/src/http_client.ts index 3bada2be0..028a6c07b 100644 --- a/packages/connect/src/http_client.ts +++ b/packages/connect/src/http_client.ts @@ -21,11 +21,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 { |