From f5a798eec4737d3b0d456bcc689bcd9e46238e53 Mon Sep 17 00:00:00 2001 From: Kyle Peacock Date: Wed, 20 Sep 2023 14:47:13 -0700 Subject: [PATCH] Update packages/identity/src/identity/delegation.ts Co-authored-by: Eric Swanson <64809312+ericswanson-dfinity@users.noreply.github.com> --- packages/identity/src/identity/delegation.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/identity/src/identity/delegation.ts b/packages/identity/src/identity/delegation.ts index 974de0408..21c18ffa4 100644 --- a/packages/identity/src/identity/delegation.ts +++ b/packages/identity/src/identity/delegation.ts @@ -228,13 +228,6 @@ export class DelegationChain { usedPublicKeys.add(delegation.delegation.pubkey); } - // Ensure that the last public key in the chain not repeated. - if (usedPublicKeys.has(currentPublicKey)) { - throw new DelegationError('Error: Cannot repeat public keys in a delegation chain.', { - currentPublicKey, - usedPublicKeys, - }); - } } const delegation = await _createSingleDelegation(from, to, expiration, options.targets);