Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Jan 24, 2024
1 parent 3dbdb20 commit 1c901c2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/ibc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,9 @@ where
{
let port_id = &msg.packet.port_id_on_b;
let channel_id = &msg.packet.chan_id_on_b;
let ibc_denom = format!("{port_id}/{channel_id}/{}", data.token.denom);
Some((
vec![ibc_denom],
data.receiver.to_string(),
))
let ibc_denom =
format!("{port_id}/{channel_id}/{}", data.token.denom);
Some((vec![ibc_denom], data.receiver.to_string()))
} else if let Ok(data) =
serde_json::from_slice::<NftPacketData>(&msg.packet.data)
{
Expand All @@ -187,7 +185,9 @@ where
.token_ids
.0
.iter()
.map(|id| format!("{port_id}/{channel_id}/{}/{id}", data.class_id))
.map(|id| {
format!("{port_id}/{channel_id}/{}/{id}", data.class_id)
})
.collect();
Some((ibc_traces, data.receiver.to_string()))
} else {
Expand Down

0 comments on commit 1c901c2

Please sign in to comment.