aboutsummaryrefslogtreecommitdiffstats
path: root/src/schemas
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-22 01:06:13 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-22 17:00:44 +0800
commit52ac8c225181a3252553b3c47d61719542a5e319 (patch)
tree6ea90fdc6141af00e73c23fc5c3d77dbd16e8907 /src/schemas
parente376189bc69682b2445f344966332c63d8e9fa4d (diff)
downloaddexon-0x-contracts-52ac8c225181a3252553b3c47d61719542a5e319.tar.gz
dexon-0x-contracts-52ac8c225181a3252553b3c47d61719542a5e319.tar.zst
dexon-0x-contracts-52ac8c225181a3252553b3c47d61719542a5e319.zip
Reject checksummed addresses
Diffstat (limited to 'src/schemas')
-rw-r--r--src/schemas/basic_type_schemas.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/schemas/basic_type_schemas.ts b/src/schemas/basic_type_schemas.ts
index c3b81185d..5d66cf79b 100644
--- a/src/schemas/basic_type_schemas.ts
+++ b/src/schemas/basic_type_schemas.ts
@@ -1,7 +1,7 @@
export const addressSchema = {
id: '/addressSchema',
type: 'string',
- pattern: '^0[xX][0-9A-Fa-f]{40}$',
+ pattern: '^0x[0-9a-f]{40}$',
};
export const numberSchema = {