Fix relay compile issue

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-04-04 20:47:25 +01:00
committed by Daniel D’Aquino
parent 28a06af534
commit 475940aa01
7 changed files with 17 additions and 16 deletions

View File

@@ -169,7 +169,8 @@ class Bech32ObjectTests: XCTestCase {
}
func testTLVEncoding_NeventFromNostrEvent_ValidContent() throws {
let relays = ["wss://relay.damus.io", "wss://relay.nostr.band"]
let relay_strings = ["wss://relay.damus.io", "wss://relay.nostr.band"]
let relays = relay_strings.map({ RelayURL($0)! })
let nevent = NEvent(event: test_note, relays: relays)
XCTAssertEqual(nevent.noteid, test_note.id)