@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
package/src/agent/ICheqd.ts
CHANGED
|
@@ -3771,7 +3771,7 @@ export class Cheqd implements IAgentPlugin {
|
|
|
3771
3771
|
},
|
|
3772
3772
|
} as VerifiableCredential);
|
|
3773
3773
|
|
|
3774
|
-
const statusMaxValue = 2 ^ (
|
|
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 ^ (
|
|
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(
|