pub fn for_write_ack(
        e: &WriteAcknowledgement,
        src_chain: &dyn ChainHandle,
    ) -> Result<Self, BoxError> {
        let dst_chain_id = get_counterparty_chain(
            src_chain,
            &e.packet.destination_channel,
            &e.packet.destination_port,
        )?;

        Ok(UnidirectionalChannelPath {
            dst_chain_id,
            src_chain_id: src_chain.id(),
            src_channel_id: e.packet.destination_channel.clone(),
            src_port_id: e.packet.destination_port.clone(),
        }
        .into())
    }
/// Build the object associated with the given [`WriteAcknowledgement`] event.
Build the object associated with the given [`WriteAcknowledgement`] event.
Build the object associated with the given [ ` WriteAcknowledgement ` ] event .
pub fn for_write_ack(
        e: &WriteAcknowledgement,
        src_chain: &dyn ChainHandle,
    ) -> Result<Self, BoxError> {
        let dst_chain_id = get_counterparty_chain(
            src_chain,
            &e.packet.destination_channel,
            &e.packet.destination_port,
        )?;
        Ok(UnidirectionalChannelPath {
            dst_chain_id,
            src_chain_id: src_chain.id(),
            src_channel_id: e.packet.destination_channel.clone(),
            src_port_id: e.packet.destination_port.clone(),
        }
        .into())
    }
pub fn for_write_ack ( e : & WriteAcknowledgement , src_chain : & dyn ChainHandle , ) -> Result < Self , BoxError > { let dst_chain_id = get_counterparty_chain ( src_chain , & e . packet . destination_channel , & e . packet . destination_port , ) ? ; Ok ( UnidirectionalChannelPath { dst_chain_id , src_chain_id : src_chain . id ( ) , src_channel_id : e . packet . destination_channel . clone ( ) , src_port_id : e . packet . destination_port . clone ( ) , } . into ( ) ) }
Build the object associated with the given [`WriteAcknowledgement`] event.
Build the object associated with the given [ ` WriteAcknowledgement ` ] event .
e
&WriteAcknowledgement
src_chain
&dyn ChainHandle
e
&WriteAcknowledgement
src_chain
&dyn ChainHandle