From 45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 21 Nov 2017 16:08:24 -0600 Subject: Add networkId to zeroExConfig schema --- packages/0x.js/src/schemas/zero_ex_config_schema.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages') 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'], }; -- cgit