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 194007f commit b60c736
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 @@ -222,7 +222,7 @@ export class DelegationChain {
delegation.delegation.expiration,
);
}
if (usedPublicKeys.has(currentPublicKey)) {
if (usedPublicKeys.has(delegation.delegation.pubkey)) {
throw new DelegationError('Delegation target cannot be repeated in the chain.');
}
usedPublicKeys.add(delegation.delegation.pubkey);
Expand Down

0 comments on commit b60c736

Please sign in to comment.