Skip to content

Commit

Permalink
Merge pull request #3246 from getAlby/remove-getrelay
Browse files Browse the repository at this point in the history
fix: remove optional getRelays nostr provider method
  • Loading branch information
pavanjoshi914 authored Sep 27, 2024
2 parents 90ab55f + 522d4d3 commit 9122843
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 38 deletions.
29 changes: 0 additions & 29 deletions src/extension/background-script/actions/nostr/getRelays.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/extension/background-script/actions/nostr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import encryptOrPrompt from "./encryptOrPrompt";
import generatePrivateKey from "./generatePrivateKey";
import getPrivateKey from "./getPrivateKey";
import getPublicKeyOrPrompt from "./getPublicKeyOrPrompt";
import getRelays from "./getRelays";
import isEnabled from "./isEnabled";
import nip44DecryptOrPrompt from "./nip44DecryptOrPrompt";
import nip44EncryptOrPrompt from "./nip44EncryptOrPrompt";
Expand All @@ -23,7 +22,6 @@ export {
getPrivateKey,
getPublicKey,
getPublicKeyOrPrompt,
getRelays,
isEnabled,
nip44DecryptOrPrompt,
nip44EncryptOrPrompt,
Expand Down
1 change: 0 additions & 1 deletion src/extension/background-script/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ const routes = {
getPublicKeyOrPrompt: nostr.getPublicKeyOrPrompt,
signEventOrPrompt: nostr.signEventOrPrompt,
signSchnorrOrPrompt: nostr.signSchnorrOrPrompt,
getRelays: nostr.getRelays,
encryptOrPrompt: nostr.encryptOrPrompt,
decryptOrPrompt: nostr.decryptOrPrompt,
nip44EncryptOrPrompt: nostr.nip44EncryptOrPrompt,
Expand Down
1 change: 0 additions & 1 deletion src/extension/content-script/nostr.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const nostrCalls = [
"nostr/getPublicKeyOrPrompt",
"nostr/signEventOrPrompt",
"nostr/signSchnorrOrPrompt",
"nostr/getRelays",
"nostr/enable",
"nostr/encryptOrPrompt",
"nostr/decryptOrPrompt",
Expand Down
5 changes: 0 additions & 5 deletions src/extension/providers/nostr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ export default class NostrProvider extends ProviderBase {
return this.execute("signSchnorrOrPrompt", { sigHash });
}

async getRelays() {
await this.enable();
return this.execute("getRelays");
}

//override method from base class, we don't want to throw error if not enabled
async on(...args: Parameters<EventEmitter["on"]>) {
await this.enable();
Expand Down

0 comments on commit 9122843

Please sign in to comment.