diff --git a/crates/enostr/src/note.rs b/crates/enostr/src/note.rs index 12a0564..cfd7550 100644 --- 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 { - 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) }