From 786f565e4e9fa429c66d5d3129b111b929aefcfa Mon Sep 17 00:00:00 2001 From: Shahak Shama Date: Sun, 10 Dec 2023 16:01:09 +0200 Subject: [PATCH] fix bug in schema of STORAGE_KEY --- api/starknet_api_openrpc.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index d25f592..989f7e6 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -1287,8 +1287,8 @@ "type": "string", "title": "Storage key", "$comment": "A storage key, represented as a string of hex digits", - "description": "A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.", - "pattern": "^0x0[0-7]{1}[a-fA-F0-9]{0,62}$" + "description": "A storage key. Represented as up to 251 bits which is 62 hex digits and 3 bits.", + "pattern": "^0x(0|[a-fA-F1-9][a-fA-F0-9]{0,61}|[1-7]{1}[a-fA-F0-9]{62})" }, "ETH_ADDRESS": { "title": "Ethereum address", @@ -3942,4 +3942,4 @@ } } } -} \ No newline at end of file +}