Skip to content

Commit

Permalink
Fix InMsg new variants parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker-volodya committed Sep 26, 2024
1 parent c620877 commit 9543f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inbound_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 9543f6a

Please sign in to comment.