Skip to content

Commit

Permalink
Fetch validators from cosmos as h256
Browse files Browse the repository at this point in the history
  • Loading branch information
nambrot committed Oct 29, 2023
1 parent b7c4e2f commit 336da71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/chains/hyperlane-cosmos/src/multisig_ism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ impl MultisigIsm for CosmosMultisigIsm {
.await?;
let response: multisig_ism::VerifyInfoResponse = serde_json::from_slice(&data)?;

let validators: Vec<H256> = response
let validators = response
.validators
.iter()
.map(|v| h160_to_h256(H160::from_str(v).unwrap()))
.map(|v| H256::from_str(v).unwrap())
.collect();

Ok((validators, response.threshold))
Expand Down

0 comments on commit 336da71

Please sign in to comment.