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 ed64572 commit 194007f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/identity/src/identity/delegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ export class DelegationChain {
if (usedPublicKeys.has(currentPublicKey)) {
throw new DelegationError('Delegation target cannot be repeated in the chain.');
}
usedPublicKeys.add(currentPublicKey);
currentPublicKey = delegation.delegation.pubkey;
usedPublicKeys.add(delegation.delegation.pubkey);
}

// Ensure that the last public key in the chain not repeated.
Expand Down

0 comments on commit 194007f

Please sign in to comment.