Skip to content

Commit

Permalink
fix ack
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvja committed May 13, 2024
1 parent ec7c323 commit ad2b0c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hyperspace/solana/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2080,9 +2080,13 @@ impl Chain for SolanaClient {
} else if let MsgEnvelope::Packet(PacketMsg::Ack(e)) = message {
let packet_data: ibc_app_transfer_types::packet::PacketData =
serde_json::from_slice(&e.packet.data).unwrap();
let sender_account = Pubkey::from_str(&packet_data.sender.as_ref()).unwrap();
self.send_deliver(
DeliverIxType::Acknowledgement { sender: sender_account },
DeliverIxType::Timeout {
token: packet_data.token,
port_id: e.packet.port_id_on_a,
channel_id: e.packet.chan_id_on_a,
sender_account: packet_data.sender.to_string(),
},
chunk_account,
max_tries,
)
Expand Down

0 comments on commit ad2b0c0

Please sign in to comment.