notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit a33aad1f62a246576fbc017d7e1c0458fc55ff72
parent f496d4b8c4b574ce02d8ffdfbd1dd2198ebdab64
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 19 Apr 2025 19:34:12 -0700

note: fix from_hex crash on bad note ids

Diffstat:
Mcrates/enostr/src/note.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crates/enostr/src/note.rs b/crates/enostr/src/note.rs @@ -29,7 +29,7 @@ impl NoteId { } pub fn from_hex(hex_str: &str) -> Result<Self, Error> { - let evid = NoteId(hex::decode(hex_str)?.as_slice().try_into().unwrap()); + let evid = NoteId(hex::decode(hex_str)?.as_slice().try_into()?); Ok(evid) }