nip46: remove deprecated getRelays()

This commit is contained in:
fiatjaf
2025-07-23 16:22:16 -03:00
parent 6ec19b618c
commit b2f3a01439

View File

@@ -5,7 +5,6 @@ import { getConversationKey, decrypt, encrypt } from './nip44.ts'
import { NIP05_REGEX } from './nip05.ts' import { NIP05_REGEX } from './nip05.ts'
import { SimplePool } from './pool.ts' import { SimplePool } from './pool.ts'
import { Handlerinformation, NostrConnect } from './kinds.ts' import { Handlerinformation, NostrConnect } from './kinds.ts'
import type { RelayRecord } from './relay.ts'
import { Signer } from './signer.ts' import { Signer } from './signer.ts'
var _fetch: any var _fetch: any
@@ -238,13 +237,6 @@ export class BunkerSigner implements Signer {
return this.cachedPubKey return this.cachedPubKey
} }
/**
* @deprecated removed from NIP
*/
async getRelays(): Promise<RelayRecord> {
return JSON.parse(await this.sendRequest('get_relays', []))
}
/** /**
* Signs an event using the remote private key. * Signs an event using the remote private key.
* @param event - The event to sign. * @param event - The event to sign.