Skip to content

Commit da9ee40

Browse files
committed
fix: use unknown as fallback reason
1 parent b76a872 commit da9ee40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsigner/src/v0/messages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ impl StacksMessageCodec for RejectReason {
13311331

13321332
fn consensus_deserialize<R: Read>(fd: &mut R) -> Result<Self, CodecError> {
13331333
let Ok(type_prefix_byte) = read_next::<u8, _>(fd) else {
1334-
return Ok(RejectReason::NotRejected);
1334+
return Ok(RejectReason::Unknown(RejectReasonPrefix::Unknown as u8));
13351335
};
13361336
let type_prefix = RejectReasonPrefix::from(type_prefix_byte);
13371337
let code = match type_prefix {

0 commit comments

Comments
 (0)