From 12dc8c0d158517b77ac548e0f102a45068f2f5e3 Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Thu, 21 Dec 2017 14:44:09 -0500 Subject: Add missing calls to bigNumberConfigs in packages where we are instantiating BigNumbers --- packages/web3-wrapper/src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages/web3-wrapper/src') diff --git a/packages/web3-wrapper/src/index.ts b/packages/web3-wrapper/src/index.ts index dd94d683e..b48532204 100644 --- a/packages/web3-wrapper/src/index.ts +++ b/packages/web3-wrapper/src/index.ts @@ -1,5 +1,8 @@ import {TransactionReceipt, TxData} from '@0xproject/types'; -import {promisify} from '@0xproject/utils'; +import { + bigNumberConfigs, + promisify, +} from '@0xproject/utils'; import BigNumber from 'bignumber.js'; import * as _ from 'lodash'; import * as Web3 from 'web3'; @@ -15,6 +18,9 @@ interface RawLogEntry { topics: string[]; } +// Customize our BigNumber instances +bigNumberConfigs.configure(); + export class Web3Wrapper { private _web3: Web3; private _defaults: Partial; -- cgit v1.2.3