nip46: remove deprecated getRelays()
This commit is contained in:
parent
6ec19b618c
commit
b2f3a01439
8
nip46.ts
8
nip46.ts
|
@ -5,7 +5,6 @@ import { getConversationKey, decrypt, encrypt } from './nip44.ts'
|
|||
import { NIP05_REGEX } from './nip05.ts'
|
||||
import { SimplePool } from './pool.ts'
|
||||
import { Handlerinformation, NostrConnect } from './kinds.ts'
|
||||
import type { RelayRecord } from './relay.ts'
|
||||
import { Signer } from './signer.ts'
|
||||
|
||||
var _fetch: any
|
||||
|
@ -238,13 +237,6 @@ export class BunkerSigner implements Signer {
|
|||
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.
|
||||
* @param event - The event to sign.
|
||||
|
|
Loading…
Reference in New Issue