aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper
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/web3-wrapper
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/web3-wrapper')
-rw-r--r--packages/web3-wrapper/src/index.ts8
1 files changed, 7 insertions, 1 deletions
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<TxData>;