Skip to content

Commit

Permalink
Update packages/identity/src/identity/delegation.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Swanson <[email protected]>
  • Loading branch information
krpeacock and ericswanson-dfinity authored Sep 20, 2023
1 parent b60c736 commit f5a798e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/identity/src/identity/delegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5a798e

Please sign in to comment.