diff --git a/src/inbound_messages.rs b/src/inbound_messages.rs index ad3efbf..28cb6cf 100644 --- a/src/inbound_messages.rs +++ b/src/inbound_messages.rs @@ -520,7 +520,7 @@ impl Deserializable for InMsg { MSG_DISCARD_TR => read_msg_descr!(cell, InMsgDiscardedTransit, DiscardedTransit), #[cfg(feature = "ton")] 0b00000001 => { - let subtag = cell.get_next_bits(2)?[0]; + let subtag = (cell.get_next_bits(2)?[0] & 0b11000000) >> 6; match subtag { 0b00 => read_msg_descr!(cell, InMsgDeferredFinal, DeferredFinal), 0b01 => read_msg_descr!(cell, InMsgDeferredTransit, DeferredTransit),