Skip to content

Commit

Permalink
rebased, clippied, formatted, compiles again
Browse files Browse the repository at this point in the history
  • Loading branch information
shufps committed Jul 8, 2024
1 parent 885ddae commit 3bb48f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bin/inx-chronicle/api/explorer/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use chronicle::{
},
};
use futures::{StreamExt, TryStreamExt};
use iota_sdk::types::block::address::ToBech32Ext;
use iota_sdk::types::block::address::{Hrp, ToBech32Ext};

use super::{
extractors::{
Expand Down Expand Up @@ -356,7 +356,7 @@ async fn richest_addresses_ledger_analytics(
.get_richest_addresses(ledger_index, top)
.await?;

let hrp = database
let hrp: Hrp = database
.collection::<ProtocolUpdateCollection>()
.get_protocol_parameters_for_ledger_index(ledger_index)
.await?
Expand All @@ -370,7 +370,9 @@ async fn richest_addresses_ledger_analytics(
.top
.into_iter()
.map(|stat| AddressStatDto {
address: iota_sdk::types::block::address::Address::from(stat.address).to_bech32(hrp.clone()).to_string(),
address: iota_sdk::types::block::address::Address::from(stat.address)
.to_bech32(hrp)
.to_string(),
balance: stat.balance,
})
.collect(),
Expand Down

0 comments on commit 3bb48f2

Please sign in to comment.