damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit a30a79b1fcf80eb83a738bcf2f5775f487c021da
parent 60260ae53bd052875ce6eb13604cfba04cff84fa
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 14 May 2023 11:20:28 -0700

Fix tests

Diffstat:
MdamusTests/ZapTests.swift | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/damusTests/ZapTests.swift b/damusTests/ZapTests.swift @@ -24,13 +24,14 @@ final class ZapTests: XCTestCase { let target = ZapTarget.profile(bob.pubkey) let message = "hey bob!" - let zapreq = make_zap_request_event(keypair: alice, content: message, relays: [], target: target, zap_type: .priv) + let mzapreq = make_zap_request_event(keypair: alice, content: message, relays: [], target: target, zap_type: .priv) - XCTAssertNotNil(zapreq) - guard let zapreq else { + XCTAssertNotNil(mzapreq) + guard let mzapreq else { return } + let zapreq = mzapreq.potentially_anon_outer_request.ev let decrypted = decrypt_private_zap(our_privkey: bob.privkey, zapreq: zapreq, target: target) XCTAssertNotNil(decrypted)