Skip to content

Commit de0e11d

Browse files
wa0x6eChaituVR
andauthored
fix: allow starknet treasury address (#1066)
* fix: allow starknet treasury address * v0.12.21 --------- Co-authored-by: Chaitanya <[email protected]>
1 parent 4220cac commit de0e11d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@snapshot-labs/snapshot.js",
3-
"version": "0.12.20",
3+
"version": "0.12.21",
44
"repository": "snapshot-labs/snapshot.js",
55
"license": "MIT",
66
"main": "dist/snapshot.cjs.js",

src/schemas/space.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,10 @@
378378
"type": "string",
379379
"title": "Contract address",
380380
"examples": ["e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"],
381-
"pattern": "^0x[a-fA-F0-9]{40}$",
382-
"minLength": 42,
383-
"maxLength": 42
381+
"anyOf": [
382+
{ "format": "address" },
383+
{ "format": "starknetAddress" }
384+
]
384385
},
385386
"network": {
386387
"type": "string",

0 commit comments

Comments
 (0)