@cheqd/did-provider-cheqd 4.7.1-develop.1 → 4.7.1-develop.2

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": "@cheqd/did-provider-cheqd",
3
- "version": "4.7.1-develop.1",
3
+ "version": "4.7.1-develop.2",
4
4
  "description": "Veramo SDK plugin for the did:cheqd DID method",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Cheqd Foundation Limited (https://github.com/cheqd)",
@@ -3771,7 +3771,7 @@ export class Cheqd implements IAgentPlugin {
3771
3771
  },
3772
3772
  } as VerifiableCredential);
3773
3773
 
3774
- const statusMaxValue = 2 ^ ((statusList.metadata.statusSize || 2) - 1);
3774
+ const statusMaxValue = (2 ^ (statusList.metadata.statusSize || 2)) - 1;
3775
3775
  // validate new status value
3776
3776
  if (typeof args.newStatus !== 'number' || args.newStatus < 0 || args.newStatus > statusMaxValue) {
3777
3777
  throw new Error(
@@ -4374,7 +4374,7 @@ export class Cheqd implements IAgentPlugin {
4374
4374
  },
4375
4375
  } as VerifiableCredential);
4376
4376
 
4377
- const statusMaxValue = 2 ^ ((statusList.metadata.statusSize || 2) - 1);
4377
+ const statusMaxValue = (2 ^ (statusList.metadata.statusSize || 2)) - 1;
4378
4378
  // validate new status value
4379
4379
  if (typeof args.newStatus !== 'number' || args.newStatus < 0 || args.newStatus > statusMaxValue) {
4380
4380
  throw new Error(