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/web3-wrapper/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/web3-wrapper/src')
-rw-r--r-- | packages/web3-wrapper/src/index.ts | 8 |
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>; |