Skip to content

Commit

Permalink
fix: improve relay command check
Browse files Browse the repository at this point in the history
  • Loading branch information
evilrobot-01 committed Jun 17, 2024
1 parent 08b2e24 commit e555dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/pop-parachains/src/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Zombienet {
if let Some(command) =
NetworkConfiguration::default_command(relay_chain).and_then(|c| c.as_str())
{
if command.to_lowercase() != RelayChain::BINARY {
if !command.to_lowercase().ends_with(RelayChain::BINARY) {
return Err(Error::UnsupportedCommand(format!(
"the relay chain command is unsupported: {command}",
)));
Expand All @@ -116,7 +116,7 @@ impl Zombienet {
for node in nodes {
if let Some(command) = NetworkConfiguration::command(node).and_then(|c| c.as_str())
{
if command.to_lowercase() != RelayChain::BINARY {
if !command.to_lowercase().ends_with(RelayChain::BINARY) {
return Err(Error::UnsupportedCommand(format!(
"the relay chain command is unsupported: {command}",
)));
Expand Down

0 comments on commit e555dbb

Please sign in to comment.