Skip to content

Commit

Permalink
Using find_chain method
Browse files Browse the repository at this point in the history
  • Loading branch information
adizere committed Jan 13, 2021
1 parent f9f8d45 commit ea129d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions relayer-cli/src/commands/query/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ impl QueryConnectionChannelsCmd {
.clone()
.ok_or_else(|| "no chain chain identifier provided".to_string())?;
let chain_config = config
.chains
.iter()
.find(|c| c.id == chain_id)
.find_chain(&chain_id)
.ok_or_else(|| "missing chain configuration for the given chain id".to_string())?;

let connection_id = self
Expand Down

0 comments on commit ea129d3

Please sign in to comment.