Skip to content

Commit

Permalink
rename: create_connection -> create_channel to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Oct 10, 2023
1 parent 1291b2a commit 5a9b437
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion local-interchain/rust/localic-std/src/modules/cosmwasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl CosmWasm<'_> {
let src: String = format!("wasm.{}", contract_addr.as_str());
let dst = format!("wasm.{}", dst_contract_addr.as_str());

r.create_connection(path, src.as_str(), dst.as_str(), order, version)
r.create_channel(path, src.as_str(), dst.as_str(), order, version)
}
}

Expand Down
4 changes: 2 additions & 2 deletions local-interchain/rust/localic-std/src/relayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ impl Relayer<'_> {

/// # Errors
///
/// Returns `Err` if the relayer is not able to create the connection between 2 channels.
pub fn create_connection(
/// Returns `Err` if the relayer is not able to create the channel between 2 channels.
pub fn create_channel(
&self,
path: &str,
src: &str,
Expand Down
2 changes: 1 addition & 1 deletion local-interchain/rust/main/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn test_ibc_contract_relaying(node: &Chain, rb1: &ChainRequestBuilder, rb2: &Cha
println!("contract_b: {cb:?}");

// example: manual relayer connection
// let wc = relayer.create_connection(
// let wc = relayer.create_channel(
// "juno-ibc-1",
// format!("wasm.{}", &contract_a.contract_addr.as_ref().unwrap()).as_str(),
// format!("wasm.{}", &contract_b.contract_addr.as_ref().unwrap()).as_str(),
Expand Down

0 comments on commit 5a9b437

Please sign in to comment.