Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove optional getRelays nostr provider method #3246

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading