Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/relayer-types/src/core/ics03_connection/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ define_error! {
InvalidConsensusHeight
{
target_height: Height,
currrent_height: Height
current_height: Height
}
| e | {
format_args!("consensus height claimed by the client on the other party is too advanced: {0} (host chain current height: {1})",
e.target_height, e.currrent_height)
e.target_height, e.current_height)
},

StaleConsensusHeight
Expand Down
10 changes: 5 additions & 5 deletions tools/test-framework/src/bootstrap/nary/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ use crate::types::topology::{bootstrap_topology, TopologyType};
/**
Bootstrap a fixed number of chains specified by `SIZE`.
*/
pub fn boostrap_chains_with_nodes<const SIZE: usize>(
pub fn bootstrap_chains_with_nodes<const SIZE: usize>(
test_config: &TestConfig,
full_nodes: [FullNode; SIZE],
topology_override: Option<TopologyType>,
config_modifier: impl FnOnce(&mut Config),
) -> Result<(RelayerDriver, NaryConnectedChains<impl ChainHandle, SIZE>), Error> {
let (relayer, chains) = boostrap_chains_with_any_nodes(
let (relayer, chains) = bootstrap_chains_with_any_nodes(
test_config,
full_nodes.into(),
topology_override,
Expand All @@ -39,14 +39,14 @@ pub fn boostrap_chains_with_nodes<const SIZE: usize>(
Bootstrap a fixed number of chains that are actually
backed by the same underlying full node.
*/
pub fn boostrap_chains_with_self_connected_node<const SIZE: usize>(
pub fn bootstrap_chains_with_self_connected_node<const SIZE: usize>(
test_config: &TestConfig,
full_node: FullNode,
topology_override: Option<TopologyType>,
config_modifier: impl FnOnce(&mut Config),
) -> Result<(RelayerDriver, NaryConnectedChains<impl ChainHandle, SIZE>), Error> {
let full_nodes = vec![full_node; SIZE];
let (relayer, chains) = boostrap_chains_with_any_nodes(
let (relayer, chains) = bootstrap_chains_with_any_nodes(
test_config,
full_nodes,
topology_override,
Expand All @@ -62,7 +62,7 @@ pub fn boostrap_chains_with_self_connected_node<const SIZE: usize>(
The topology will be retrieved and set in this method,
see [`crate::types::topology`] for more information.
*/
pub fn boostrap_chains_with_any_nodes(
pub fn bootstrap_chains_with_any_nodes(
test_config: &TestConfig,
full_nodes: Vec<FullNode>,
topology_override: Option<TopologyType>,
Expand Down
6 changes: 3 additions & 3 deletions tools/test-framework/src/framework/nary/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use ibc_relayer::chain::handle::ChainHandle;
use tracing::info;

use crate::bootstrap::nary::chain::{
boostrap_chains_with_nodes, boostrap_chains_with_self_connected_node,
bootstrap_chains_with_nodes, bootstrap_chains_with_self_connected_node,
};
use crate::error::Error;
use crate::framework::base::{HasOverrides, TestConfigOverride};
Expand Down Expand Up @@ -134,7 +134,7 @@ where
Overrides: RelayerConfigOverride + TopologyOverride,
{
fn run(&self, config: &TestConfig, nodes: [FullNode; SIZE]) -> Result<(), Error> {
let (relayer, chains) = boostrap_chains_with_nodes(
let (relayer, chains) = bootstrap_chains_with_nodes(
config,
nodes,
self.test.get_overrides().topology(),
Expand Down Expand Up @@ -169,7 +169,7 @@ where
Overrides: RelayerConfigOverride + TopologyOverride,
{
fn run(&self, config: &TestConfig, nodes: [FullNode; 1]) -> Result<(), Error> {
let (relayer, chains) = boostrap_chains_with_self_connected_node(
let (relayer, chains) = bootstrap_chains_with_self_connected_node(
config,
nodes[0].clone(),
self.test.get_overrides().topology(),
Expand Down
2 changes: 1 addition & 1 deletion tools/test-framework/src/types/topology.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
The Topology defines how chains are interconnected when more than two are used in tests.
This setup is managed by the [`crate::bootstrap::nary::chain::boostrap_chains_with_any_nodes`]
This setup is managed by the [`crate::bootstrap::nary::chain::bootstrap_chains_with_any_nodes`]
function.

Connections are established by examining the existing clients, and channels are created based
Expand Down
Loading