From 52835586ceff2bfef7b99d6ec220b3b85f3bba62 Mon Sep 17 00:00:00 2001 From: dgdg-app <119982000+dgdg-app@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:18:27 -0400 Subject: [PATCH] Update delegation.ts Template literal was compiling incorrectly, causing a space to be added in the middle of the BigInt conversion, causing a throw on AuthClient.create(), causing _deleteStorage() to be called, preventing some users from being authenticated to call anything after connecting. --- packages/identity/src/identity/delegation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/identity/src/identity/delegation.ts b/packages/identity/src/identity/delegation.ts index 055a97887..165c05f24 100644 --- a/packages/identity/src/identity/delegation.ts +++ b/packages/identity/src/identity/delegation.ts @@ -205,7 +205,7 @@ export class DelegationChain { return { delegation: new Delegation( _parseBlob(pubkey), - BigInt(`0x${expiration}`), // expiration in JSON is an hexa string (See toJSON() below). + BigInt('0x' + expiration), // expiration in JSON is an hexa string (See toJSON() below). targets && targets.map((t: unknown) => { if (typeof t !== 'string') {