diff --git a/packages/identity/src/identity/delegation.ts b/packages/identity/src/identity/delegation.ts index 99d296e3..910a0843 100644 --- a/packages/identity/src/identity/delegation.ts +++ b/packages/identity/src/identity/delegation.ts @@ -34,7 +34,7 @@ export class Delegation { public readonly pubkey: ArrayBuffer, public readonly expiration: bigint, public readonly targets?: Principal[], - ) {} + ) { } public toCBOR(): cbor.CborValue { // Expiration field needs to be encoded as a u64 specifically. @@ -205,12 +205,12 @@ export class DelegationChain { _parseBlob(pubkey), BigInt('0x' + expiration), // expiration in JSON is an hexa string (See toJSON() below). targets && - targets.map((t: unknown) => { - if (typeof t !== 'string') { - throw new Error('Invalid target.'); - } - return Principal.fromHex(t); - }), + targets.map((t: unknown) => { + if (typeof t !== 'string') { + throw new Error('Invalid target.'); + } + return Principal.fromHex(t); + }), ), signature: _parseBlob(signature) as Signature, }; @@ -234,7 +234,7 @@ export class DelegationChain { protected constructor( public readonly delegations: SignedDelegation[], public readonly publicKey: DerEncodedPublicKey, - ) {} + ) { } public toJSON(): JsonnableDelegationChain { return { @@ -266,7 +266,7 @@ export class DelegationChain { export class DelegationIdentity extends SignIdentity { /** * Create a delegation without having access to delegateKey. - * @param key The key used to sign the reqyests. + * @param key The key used to sign the requests. * @param delegation A delegation object created using `createDelegation`. */ public static fromDelegation(