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 9e38f30 commit ed64572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/identity/src/identity/delegation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export class DelegationChain {

// Ensure that public keys are not repeated in the chain.
const usedPublicKeys = new Set<ArrayBuffer>();
let currentPublicKey = to.toDer();
usedPublicKeys.add(to.toDer());

for (const delegation of options.previous.delegations) {
// Ensure that previous delegations have not expired.
Expand Down

0 comments on commit ed64572

Please sign in to comment.