Skip to content

Commit

Permalink
pcli: use PortId::transfer() in ics20 withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
avahowell authored and conorsch committed Jan 5, 2024
1 parent 6e9ad0a commit 37b1eab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/bin/pcli/src/command/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ use ibc_proto::ibc::core::{
channel::v1::{query_client::QueryClient as IbcChannelQueryClient, QueryChannelRequest},
connection::v1::QueryConnectionRequest,
};
use ibc_types::core::{channel::ChannelId, client::Height as IbcHeight};
use ibc_types::core::{
channel::{ChannelId, PortId},
client::Height as IbcHeight,
};
use ibc_types::lightclients::tendermint::client_state::ClientState as TendermintClientState;
use rand_core::OsRng;
use regex::Regex;
Expand Down Expand Up @@ -862,7 +865,7 @@ impl TxCmd {
IbcChannelQueryClient::new(app.pd_channel().await?);

let req = QueryChannelRequest {
port_id: "transfer".to_string(),
port_id: PortId::transfer().to_string(),
channel_id: format!("channel-{}", channel),
};

Expand Down

0 comments on commit 37b1eab

Please sign in to comment.