diff options
author | Jacob Evans <dekz@dekz.net> | 2018-02-27 10:12:11 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-02-27 10:47:09 +0800 |
commit | 6961169f89c4cd8480aca9c720cd8299aec9bbc0 (patch) | |
tree | 51b9a6a2f0dbaee50a9758a7983fe201d5898354 /packages/0x.js/src/0x.ts | |
parent | 3d66feb89f8e4cfcb0b5251a96d02ef31f3ae34b (diff) | |
parent | 709fa9e02ec21cee9fc145b4a578742c8dd190aa (diff) | |
download | dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.gz dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.bz2 dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.lz dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.xz dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.zst dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.zip |
Merge branch 'development' into feature/0x.js/lowercase-addresses
Diffstat (limited to 'packages/0x.js/src/0x.ts')
-rw-r--r-- | packages/0x.js/src/0x.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts index fa00bcd1a..22a5fee10 100644 --- a/packages/0x.js/src/0x.ts +++ b/packages/0x.js/src/0x.ts @@ -13,6 +13,8 @@ import { TokenTransferProxyWrapper } from './contract_wrappers/token_transfer_pr import { TokenWrapper } from './contract_wrappers/token_wrapper'; import { OrderStateWatcher } from './order_watcher/order_state_watcher'; import { zeroExConfigSchema } from './schemas/zero_ex_config_schema'; +import { zeroExPrivateNetworkConfigSchema } from './schemas/zero_ex_private_network_config_schema'; +import { zeroExPublicNetworkConfigSchema } from './schemas/zero_ex_public_network_config_schema'; import { ECSignature, Order, SignedOrder, Web3Provider, ZeroExConfig, ZeroExError } from './types'; import { assert } from './utils/assert'; import { constants } from './utils/constants'; @@ -164,7 +166,10 @@ export class ZeroEx { */ constructor(provider: Web3Provider, config: ZeroExConfig) { assert.isWeb3Provider('provider', provider); - assert.doesConformToSchema('config', config, zeroExConfigSchema); + assert.doesConformToSchema('config', config, zeroExConfigSchema, [ + zeroExPrivateNetworkConfigSchema, + zeroExPublicNetworkConfigSchema, + ]); const artifactJSONs = _.values(artifacts); const abiArrays = _.map(artifactJSONs, artifact => artifact.abi); this._abiDecoder = new AbiDecoder(abiArrays); |