Fix OK decoding

This commit is contained in:
William Casarin
2023-03-31 15:22:11 -07:00
parent 2596542cb6
commit 4ac3e71039

View File

@@ -69,10 +69,11 @@ enum NostrResponse: Decodable {
throw error throw error
} }
self = .ok(cr) self = .ok(cr)
return
//ev.pow = count_hash_leading_zero_bits(ev.id) //ev.pow = count_hash_leading_zero_bits(ev.id)
} }
throw DecodingError.dataCorrupted(.init(codingPath: [], debugDescription: "expected EVENT or NOTICE, got \(typ)")) throw DecodingError.dataCorrupted(.init(codingPath: [], debugDescription: "expected EVENT, NOTICE or OK, got \(typ)"))
} }
} }