mirror of
git://jb55.com/damus
synced 2024-09-18 19:23:49 +00:00
Fix tests
This commit is contained in:
parent
60260ae53b
commit
a30a79b1fc
@ -24,13 +24,14 @@ final class ZapTests: XCTestCase {
|
|||||||
let target = ZapTarget.profile(bob.pubkey)
|
let target = ZapTarget.profile(bob.pubkey)
|
||||||
|
|
||||||
let message = "hey bob!"
|
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)
|
XCTAssertNotNil(mzapreq)
|
||||||
guard let zapreq else {
|
guard let mzapreq else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let zapreq = mzapreq.potentially_anon_outer_request.ev
|
||||||
let decrypted = decrypt_private_zap(our_privkey: bob.privkey, zapreq: zapreq, target: target)
|
let decrypted = decrypt_private_zap(our_privkey: bob.privkey, zapreq: zapreq, target: target)
|
||||||
|
|
||||||
XCTAssertNotNil(decrypted)
|
XCTAssertNotNil(decrypted)
|
||||||
|
Loading…
Reference in New Issue
Block a user