Skip to content

Commit

Permalink
Impl From<SaplingScannedResult> for [u8; 32]
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Dec 8, 2023
1 parent 5dd33d7 commit 0ccc4cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zebra-state/src/service/finalized_state/disk_format/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ impl From<&[u8; 32]> for SaplingScannedResult {
}
}

impl From<SaplingScannedResult> for [u8; 32] {
fn from(scanned_result: SaplingScannedResult) -> Self {
scanned_result.0
}
}

/// A database column family entry for a block scanned with a Sapling vieweing key.
#[derive(Clone, Debug, Eq, PartialEq)]
#[cfg_attr(any(test, feature = "proptest-impl"), derive(Arbitrary, Default))]
Expand Down

0 comments on commit 0ccc4cb

Please sign in to comment.