aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-03 03:51:12 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-06 06:33:52 +0800
commite5d65b585a2b0a159f50320eaf5bfec05a869478 (patch)
tree557036cbee6b07a5ffe3751e670a04147a73409b /packages/json-schemas
parentd9933237a0be069d84944e4d4f1b3dffe6bb7643 (diff)
downloaddexon-sol-tools-e5d65b585a2b0a159f50320eaf5bfec05a869478.tar
dexon-sol-tools-e5d65b585a2b0a159f50320eaf5bfec05a869478.tar.gz
dexon-sol-tools-e5d65b585a2b0a159f50320eaf5bfec05a869478.tar.bz2
dexon-sol-tools-e5d65b585a2b0a159f50320eaf5bfec05a869478.tar.lz
dexon-sol-tools-e5d65b585a2b0a159f50320eaf5bfec05a869478.tar.xz
dexon-sol-tools-e5d65b585a2b0a159f50320eaf5bfec05a869478.tar.zst
dexon-sol-tools-e5d65b585a2b0a159f50320eaf5bfec05a869478.zip
Update hex schema to match 0x
Diffstat (limited to 'packages/json-schemas')
-rw-r--r--packages/json-schemas/schemas/basic_type_schemas.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/json-schemas/schemas/basic_type_schemas.ts b/packages/json-schemas/schemas/basic_type_schemas.ts
index 7565df9e0..301f9ec73 100644
--- a/packages/json-schemas/schemas/basic_type_schemas.ts
+++ b/packages/json-schemas/schemas/basic_type_schemas.ts
@@ -7,7 +7,7 @@ export const addressSchema = {
export const hexSchema = {
id: '/Hex',
type: 'string',
- pattern: '^0x([0-9a-f][0-9a-f])+$',
+ pattern: '^0x(([0-9a-f][0-9a-f])+)?$',
};
export const numberSchema = {