Skip to content

Commit

Permalink
Fix ViewSuiBridge Bridge CLI command (#19869)
Browse files Browse the repository at this point in the history
## Description 

Handle the case where a bridge committee member is no longer a
validator.

## Test plan 

Tested locally.
  • Loading branch information
Bridgerz authored Oct 17, 2024
1 parent 67ac5c8 commit 446d7d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/sui-bridge-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ async fn main() -> anyhow::Result<()> {
};
let url = url.to_string();

let name = names.get(&sui_address).unwrap();
let name = names.get(&sui_address).cloned().unwrap_or(url.clone());

if ping {
let client_clone = client.clone();
ping_tasks.push(client_clone.get(url.clone()).send());
Expand Down

0 comments on commit 446d7d5

Please sign in to comment.