Skip to content

Commit

Permalink
Fix TON Bridge logs (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
vovac12 authored Dec 4, 2024
1 parent d18d89f commit aff941d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion relayer/src/relay/ton/ton_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ impl Relay {
.await?;
for tx in res {
for msg in tx.out_msgs {
if msg.source != self.channel || msg.destination.is_some() {
continue;
}
if let crate::ton::types::MessageData::Raw { body, .. } = msg.msg_data {
let body = toner::ton::boc::BagOfCells::unpack(body.as_bits())?
.single_root()
Expand Down Expand Up @@ -180,7 +183,7 @@ impl Relay {
));
}
Err(err) => {
println!("Failed to parse body: {err:?}");
log::warn!("Failed to parse body: {err:?}");
}
}
}
Expand Down

0 comments on commit aff941d

Please sign in to comment.