@snapshot-labs/snapshot.js 0.12.62 → 0.12.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.12.62",
3
+ "version": "0.12.63",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
@@ -313,9 +313,9 @@
313
313
  "period": {
314
314
  "type": "integer",
315
315
  "minimum": 0,
316
- "maximum": 15552000,
316
+ "maximum": 31622400,
317
317
  "errorMessage": {
318
- "maximum": "Delay must be less than 180 days"
318
+ "maximum": "Delay must be less than a year"
319
319
  }
320
320
  },
321
321
  "type": {
package/src/utils.ts CHANGED
@@ -132,7 +132,11 @@ ajv.addFormat('evmAddress', {
132
132
  ajv.addFormat('starknetAddress', {
133
133
  validate: (value: string) => {
134
134
  try {
135
- return validateAndParseAddress(value) === value;
135
+ // Accept both checksum and lowercase addresses
136
+ // but need to always be padded
137
+ return (
138
+ validateAndParseAddress(value).toLowerCase() === value.toLowerCase()
139
+ );
136
140
  } catch (e: any) {
137
141
  return false;
138
142
  }