From 5a9b43795b213a3c16acfb72550dc72a17f9e2a7 Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Tue, 10 Oct 2023 17:53:04 -0500 Subject: [PATCH] rename: create_connection -> create_channel to avoid confusion --- local-interchain/rust/localic-std/src/modules/cosmwasm.rs | 2 +- local-interchain/rust/localic-std/src/relayer.rs | 4 ++-- local-interchain/rust/main/src/main.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/local-interchain/rust/localic-std/src/modules/cosmwasm.rs b/local-interchain/rust/localic-std/src/modules/cosmwasm.rs index ec978c668..4044731a2 100644 --- a/local-interchain/rust/localic-std/src/modules/cosmwasm.rs +++ b/local-interchain/rust/localic-std/src/modules/cosmwasm.rs @@ -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) } } diff --git a/local-interchain/rust/localic-std/src/relayer.rs b/local-interchain/rust/localic-std/src/relayer.rs index ef6c8fd9e..a509b5ab9 100644 --- a/local-interchain/rust/localic-std/src/relayer.rs +++ b/local-interchain/rust/localic-std/src/relayer.rs @@ -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, diff --git a/local-interchain/rust/main/src/main.rs b/local-interchain/rust/main/src/main.rs index fd6ef4cbf..b1836bc93 100644 --- a/local-interchain/rust/main/src/main.rs +++ b/local-interchain/rust/main/src/main.rs @@ -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(),