@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.
@@ -789,9 +789,9 @@ var definitions = {
789
789
  period: {
790
790
  type: "integer",
791
791
  minimum: 0,
792
- maximum: 15552000,
792
+ maximum: 31622400,
793
793
  errorMessage: {
794
- maximum: "Delay must be less than 180 days"
794
+ maximum: "Delay must be less than a year"
795
795
  }
796
796
  },
797
797
  type: {
@@ -4482,7 +4482,9 @@ ajv.addFormat('evmAddress', {
4482
4482
  ajv.addFormat('starknetAddress', {
4483
4483
  validate: (value) => {
4484
4484
  try {
4485
- return starknet$1.validateAndParseAddress(value) === value;
4485
+ // Accept both checksum and lowercase addresses
4486
+ // but need to always be padded
4487
+ return (starknet$1.validateAndParseAddress(value).toLowerCase() === value.toLowerCase());
4486
4488
  }
4487
4489
  catch (e) {
4488
4490
  return false;
@@ -779,9 +779,9 @@ var definitions = {
779
779
  period: {
780
780
  type: "integer",
781
781
  minimum: 0,
782
- maximum: 15552000,
782
+ maximum: 31622400,
783
783
  errorMessage: {
784
- maximum: "Delay must be less than 180 days"
784
+ maximum: "Delay must be less than a year"
785
785
  }
786
786
  },
787
787
  type: {
@@ -4472,7 +4472,9 @@ ajv.addFormat('evmAddress', {
4472
4472
  ajv.addFormat('starknetAddress', {
4473
4473
  validate: (value) => {
4474
4474
  try {
4475
- return validateAndParseAddress(value) === value;
4475
+ // Accept both checksum and lowercase addresses
4476
+ // but need to always be padded
4477
+ return (validateAndParseAddress(value).toLowerCase() === value.toLowerCase());
4476
4478
  }
4477
4479
  catch (e) {
4478
4480
  return false;