Skip to content

Commit

Permalink
refactor: code and remove unused imports
Browse files Browse the repository at this point in the history
- change `std::collections::btreeset` to `btreeset::new()` in line 19
- remove unused imports
  • Loading branch information
falcucci committed Feb 7, 2024
1 parent cef3113 commit 0b1f4da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mithril-common/src/chain_observer/pallas_observer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ use pallas_network::{
};

use pallas_primitives::ToCanonicalJson;
use std::path::{Path, PathBuf};
use std::{
collections::BTreeSet,
path::{Path, PathBuf},
};

use crate::chain_observer::interface::*;
use crate::chain_observer::{ChainAddress, TxDatum};
Expand Down Expand Up @@ -194,7 +197,7 @@ impl PallasChainObserver {
.map_err(|err| anyhow!(err))
.with_context(|| "PallasChainObserver failed to get current era")?;

let state_snapshot = queries_v16::get_stake_snapshots(statequery, era, vec![])
let state_snapshot = queries_v16::get_stake_snapshots(statequery, era, BTreeSet::new())
.await
.map_err(|err| anyhow!(err))
.with_context(|| "PallasChainObserver failed to get stake snapshot")?;
Expand Down

0 comments on commit 0b1f4da

Please sign in to comment.