Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Jan 18, 2024
1 parent a738b8a commit 28a1653
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/astria-sequencer/src/accounts/ics20_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,8 @@ async fn refund_tokens_check<S: StateRead>(
source_port: &PortId,
source_channel: &ChannelId,
) -> Result<()> {
use prost::Message as _;

let packet_data = FungibleTokenPacketData::decode(data)
.context("failed to decode packet data into FungibleTokenPacketData")?;
let packet_data: FungibleTokenPacketData =
serde_json::from_slice(data).context("failed to decode fungible token packet data json")?;
let mut denom: Denom = packet_data.denom.as_str().into();

// if the asset is prefixed with `ibc`, the rest of the denomination string is the asset ID,
Expand Down

0 comments on commit 28a1653

Please sign in to comment.