We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7a98de commit 7b1eb11Copy full SHA for 7b1eb11
packages/common/src/validation.ts
@@ -9,9 +9,9 @@ const basePaths = Joi.array().items(basePath)
9
10
const chain = Joi.object({
11
namespace: Joi.string(),
12
- id: Joi.alternatives()
13
- .try(Joi.string().pattern(/^0x[0-9a-fA-F]+$/),
14
- Joi.number().positive()).required,
+ id: Joi.string()
+ .pattern(/^0x[0-9a-fA-F]+$/)
+ .required(),
15
rpcUrl: Joi.string().required(),
16
label: Joi.string().required(),
17
token: Joi.string().required(),
0 commit comments