Skip to content

Commit

Permalink
Merge pull request #342 from synapseweb3/fix-ckb4ibc-monitor-crash
Browse files Browse the repository at this point in the history
fix: ckb4ibc monitor crash in CI
  • Loading branch information
jjyr authored Oct 8, 2023
2 parents cebfec8 + 2d0b208 commit 913d38d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/test-framework/src/types/single/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 913d38d

Please sign in to comment.