Skip to content

Commit

Permalink
convert cosmos port_id to starknet
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Dec 19, 2024
1 parent 2214a0f commit b69e231
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ where
async fn query_channel_end(
chain: &Chain,
channel_id: &ChannelId,
_port_id: &Chain::PortId,
port_id: &Chain::PortId,
_height: &Chain::Height,
) -> Result<Chain::ChannelEnd, Chain::Error> {
// TODO(rano): how to query at a specific height?
Expand All @@ -56,9 +56,8 @@ where

let contract_address = chain.query_contract_address(PhantomData).await?;

// TODO(rano): dummy port_id
let port_id = PortId {
port_id: "transfer".to_string(),
port_id: port_id.to_string(),
};

let calldata = encoding
Expand Down Expand Up @@ -94,7 +93,7 @@ where
async fn query_channel_end_with_proofs(
chain: &Chain,
channel_id: &ChannelId,
_port_id: &Chain::PortId,
port_id: &Chain::PortId,
_height: &Chain::Height,
) -> Result<(Chain::ChannelEnd, Chain::CommitmentProof), Chain::Error> {
// TODO(rano): how to query at a specific height?
Expand All @@ -103,9 +102,8 @@ where

let contract_address = chain.query_contract_address(PhantomData).await?;

// TODO(rano): dummy port_id
let port_id = PortId {
port_id: "transfer".to_string(),
port_id: port_id.to_string(),
};

let calldata = encoding
Expand Down

0 comments on commit b69e231

Please sign in to comment.