Skip to content

Commit

Permalink
feat: remove NO_IDENTIFIERS_STORED var
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-HocNguyena committed May 7, 2024
1 parent ce89180 commit e5ba519
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/cardano/walletConnect/identityWalletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import { Agent } from "../../agent/agent";
class IdentityWalletConnect extends CardanoPeerConnect {
static readonly IDENTIFIER_ID_NOT_LOCATED =
"The id doesn't correspond with any stored identifier";
static readonly NO_IDENTIFIERS_STORED = "No stored identifiers";
private selectedAid: string;
getIdentifierOobi: (selectedAid: string) => Promise<string>;
getIdentifierOobi: () => Promise<string>;
sign: (identifier: string, payload: string) => Promise<string>;

signerCache: Map<string, Signer>;
Expand All @@ -34,9 +33,9 @@ class IdentityWalletConnect extends CardanoPeerConnect {
this.selectedAid = selectedAid;
this.signerCache = new Map();

this.getIdentifierOobi = async (identifierAid: string): Promise<string> => {
this.getIdentifierOobi = async (): Promise<string> => {
const identifier = await Agent.agent.identifiers.getIdentifier(
identifierAid
this.selectedAid
);
if (!identifier) {
throw new Error(IdentityWalletConnect.IDENTIFIER_ID_NOT_LOCATED);
Expand Down

0 comments on commit e5ba519

Please sign in to comment.