starknet 7.6.3 → 7.6.4

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/dist/index.mjs CHANGED
@@ -6221,7 +6221,7 @@ function assertRange(data, type, { min, max }) {
6221
6221
  assert(value >= min && value <= max, `${value} (${type}) is out of bounds [${min}, ${max}]`);
6222
6222
  }
6223
6223
  function identifyRevision({ types, domain }) {
6224
- if (revisionConfiguration[TypedDataRevision.ACTIVE].domain in types && domain.revision === TypedDataRevision.ACTIVE)
6224
+ if (revisionConfiguration[TypedDataRevision.ACTIVE].domain in types && domain.revision?.toString() === TypedDataRevision.ACTIVE)
6225
6225
  return TypedDataRevision.ACTIVE;
6226
6226
  if (revisionConfiguration[TypedDataRevision.LEGACY].domain in types && (domain.revision ?? TypedDataRevision.LEGACY) === TypedDataRevision.LEGACY)
6227
6227
  return TypedDataRevision.LEGACY;