Skip to content

Commit c409737

Browse files
committed
Lint
1 parent f859ceb commit c409737

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/rpc.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use namada_sdk::{
1212
use std::{future::Future, str::FromStr};
1313
use tendermint_rpc::client::CompatMode;
1414
use tendermint_rpc::{endpoint::net_info::PeerInfo, HttpClient, HttpClientUrl, Url};
15-
15+
use namada_sdk::tendermint::block::Height as TenderHeight;
1616
use crate::shared::{
1717
checksums::Checksums,
1818
namada::{Address, Block, BlockResult, Epoch, Height, Validator},
@@ -159,16 +159,14 @@ impl Rpc {
159159
checksums: &Checksums,
160160
epoch: Epoch,
161161
) -> anyhow::Result<Block> {
162-
let block_height = namada_sdk::tendermint::block::Height::try_from(block_height).unwrap();
162+
let block_height = TenderHeight::try_from(block_height).unwrap();
163163

164164
let events_futures = self
165165
.clients
166166
.iter()
167167
.map(|client| client.block_results(block_height))
168168
.collect();
169169

170-
let block_height = namada_sdk::tendermint::block::Height::try_from(block_height).unwrap();
171-
172170
let events_res = self.concurrent_requests(events_futures).await;
173171
let events = events_res.map(BlockResult::from).context(format!(
174172
"Should be able to query for block events for height: {}",

0 commit comments

Comments
 (0)