From 7691b48fb677e5a313188ffab5634e040e4275b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Mon, 6 Oct 2025 11:48:58 -0700 Subject: [PATCH] Fix testDecodingPayInvoiceRequest test failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel D’Aquino --- nostrdb/NdbNote.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nostrdb/NdbNote.swift b/nostrdb/NdbNote.swift index 25fa9e99..080048e1 100644 --- a/nostrdb/NdbNote.swift +++ b/nostrdb/NdbNote.swift @@ -290,9 +290,11 @@ class NdbNote: Codable, Equatable, Hashable { free(buf) return nil } - case .manual(_, let signature, _): + case .manual(_, let signature, let noteId): var raw_sig = signature.data.byteArray + var raw_id = noteId.id.byteArray ndb_builder_set_sig(&builder, &raw_sig) + ndb_builder_set_id(&builder, &raw_id) do { // Finalize note, save length, and ensure it is higher than zero (which signals finalization has succeeded)