aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-22 06:08:24 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:13:36 +0800
commit45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6 (patch)
treed6c57ee76832db6d2a67d079f9244b347937af6b
parent311d42626a8eb6c07e4746172b8d868920e37e6c (diff)
downloaddexon-0x-contracts-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.tar.gz
dexon-0x-contracts-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.tar.zst
dexon-0x-contracts-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.zip
Add networkId to zeroExConfig schema
-rw-r--r--packages/0x.js/src/schemas/zero_ex_config_schema.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/0x.js/src/schemas/zero_ex_config_schema.ts b/packages/0x.js/src/schemas/zero_ex_config_schema.ts
index 6d4b3ed27..121d81257 100644
--- a/packages/0x.js/src/schemas/zero_ex_config_schema.ts
+++ b/packages/0x.js/src/schemas/zero_ex_config_schema.ts
@@ -1,6 +1,10 @@
export const zeroExConfigSchema = {
id: '/ZeroExConfig',
properties: {
+ networkId: {
+ type: 'number',
+ minimum: 0,
+ },
gasPrice: {$ref: '/Number'},
exchangeContractAddress: {$ref: '/Address'},
tokenRegistryContractAddress: {$ref: '/Address'},
@@ -20,4 +24,5 @@ export const zeroExConfigSchema = {
},
},
type: 'object',
+ required: ['networkId'],
};