diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-21 03:39:36 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-21 03:39:36 +0800 |
commit | 7b67afae06c93290e6d8c4a4f0de2435f31ae714 (patch) | |
tree | a097adbdae48b52ccb2cc1a7445ef3e622fd0c1b /packages/0x.js/src/0x.ts | |
parent | fe9e319a6136d4be4fa94287ad709a127c548750 (diff) | |
download | dexon-sol-tools-7b67afae06c93290e6d8c4a4f0de2435f31ae714.tar dexon-sol-tools-7b67afae06c93290e6d8c4a4f0de2435f31ae714.tar.gz dexon-sol-tools-7b67afae06c93290e6d8c4a4f0de2435f31ae714.tar.bz2 dexon-sol-tools-7b67afae06c93290e6d8c4a4f0de2435f31ae714.tar.lz dexon-sol-tools-7b67afae06c93290e6d8c4a4f0de2435f31ae714.tar.xz dexon-sol-tools-7b67afae06c93290e6d8c4a4f0de2435f31ae714.tar.zst dexon-sol-tools-7b67afae06c93290e6d8c4a4f0de2435f31ae714.zip |
Change assert.doesConformToShema interface
Diffstat (limited to 'packages/0x.js/src/0x.ts')
-rw-r--r-- | packages/0x.js/src/0x.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts index d024e6097..c578478d8 100644 --- a/packages/0x.js/src/0x.ts +++ b/packages/0x.js/src/0x.ts @@ -22,9 +22,6 @@ import { decorators } from './utils/decorators'; import { signatureUtils } from './utils/signature_utils'; import { utils } from './utils/utils'; -assert.schemaValidator.addSchema(zeroExPrivateNetworkConfigSchema); -assert.schemaValidator.addSchema(zeroExPublicNetworkConfigSchema); - /** * The ZeroEx class is the single entry-point into the 0x.js library. It contains all of the library's functionality * and all calls to the library should be made through a ZeroEx instance. @@ -168,7 +165,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); |