Skip to content

Commit

Permalink
Fix incorrect types
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Dec 6, 2023
1 parent 28d7b50 commit 74f7d6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zebra-scan/src/storage/db/sapling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ use std::{
};

use itertools::Itertools;
use zebra_chain::{block::Height, transaction};

use zebra_chain::block::Height;
use zebra_state::{
AsColumnFamilyRef, ReadDisk, SaplingScannedDatabaseEntry, SaplingScannedDatabaseIndex,
SaplingScannedResult, SaplingScanningKey, TransactionIndex, WriteDisk,
Expand Down Expand Up @@ -85,7 +86,7 @@ impl Storage {
// But we want Vec<SaplingScannedResult>, with empty Vecs instead of [None, None, ...]
results
.into_iter()
.map(|(index, vector)| -> (Height, Vec<transaction::Hash>) {
.map(|(index, vector)| -> (Height, Vec<SaplingScannedResult>) {
(index, vector.into_iter().flatten().collect())
})
.collect()
Expand Down

0 comments on commit 74f7d6b

Please sign in to comment.