Skip to content

Commit

Permalink
Revert "fix: keyring issue"
Browse files Browse the repository at this point in the history
This reverts commit 95b3fe2.
  • Loading branch information
sh-wallet committed Dec 9, 2024
1 parent 19c43fc commit 7d22fd5
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/background/src/keyring/keyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1155,10 +1155,6 @@ export class KeyRing {
): Promise<{
multiKeyStoreInfo: MultiKeyStoreInfoWithSelected;
}> {
if (this.password !== "" && this.status !== KeyRingStatus.UNLOCKED) {
await this.unlock(this.password);
}

if (this.status !== KeyRingStatus.UNLOCKED || this.password == "") {
throw new Error("Key ring is locked or not initialized");
}
Expand Down Expand Up @@ -1188,10 +1184,6 @@ export class KeyRing {
): Promise<{
multiKeyStoreInfo: MultiKeyStoreInfoWithSelected;
}> {
if (this.password !== "" && this.status !== KeyRingStatus.UNLOCKED) {
await this.unlock(this.password);
}

if (this.status !== KeyRingStatus.UNLOCKED || this.password == "") {
throw new Error("Key ring is locked or not initialized");
}
Expand Down Expand Up @@ -1220,10 +1212,6 @@ export class KeyRing {
): Promise<{
multiKeyStoreInfo: MultiKeyStoreInfoWithSelected;
}> {
if (this.password !== "" && this.status !== KeyRingStatus.UNLOCKED) {
await this.unlock(this.password);
}

if (this.status !== KeyRingStatus.UNLOCKED || this.password == "") {
throw new Error("Key ring is locked or not initialized");
}
Expand Down Expand Up @@ -1261,10 +1249,6 @@ export class KeyRing {
): Promise<{
multiKeyStoreInfo: MultiKeyStoreInfoWithSelected;
}> {
if (this.password !== "" && this.status !== KeyRingStatus.UNLOCKED) {
await this.unlock(this.password);
}

if (this.status !== KeyRingStatus.UNLOCKED || this.password == "") {
throw new Error("Key ring is locked or not initialized");
}
Expand Down

0 comments on commit 7d22fd5

Please sign in to comment.