From 2d0b20873578de499727286745c2656126aabfe2 Mon Sep 17 00:00:00 2001 From: jjy Date: Sun, 8 Oct 2023 14:35:29 +0800 Subject: [PATCH] fix: ckb4ibc monitor crash in CI --- tools/test-framework/src/types/single/node.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/test-framework/src/types/single/node.rs b/tools/test-framework/src/types/single/node.rs index 56192b858..db297e3ff 100644 --- a/tools/test-framework/src/types/single/node.rs +++ b/tools/test-framework/src/types/single/node.rs @@ -155,7 +155,8 @@ impl FullNode { // normally we cannot put same `client_cell_type_args` in config.toml, because // Forcerelay/Axon assumes each counterparty chain has its own unique `client_id` // to figure out unique `client_type` and `chain_id` - if std::env::var("ACCOUNT_PREFIXES").unwrap().contains("axon") { + let chains_str = std::env::var("ACCOUNT_PREFIXES").unwrap(); + if chains_str.contains("axon") { let counterparty_chain_id = if this_chain_id.to_string() == "ckb4ibc-0" { ChainId::from_string("axon-1") } else { @@ -168,7 +169,8 @@ impl FullNode { client_cell_type_args: h256_env("CLIENT_TYPE_ARGS").into(), }, ); - } else { + } + if chains_str.contains("ckb") { let counterparty_chain_id = if this_chain_id.to_string() == "ckb4ibc-0" { ChainId::from_string("ckb4ibc-1") } else {