diff --git a/zebra-state/src/service/finalized_state/disk_format/scan.rs b/zebra-state/src/service/finalized_state/disk_format/scan.rs index 4d4b3b813c8..f15995627d7 100644 --- a/zebra-state/src/service/finalized_state/disk_format/scan.rs +++ b/zebra-state/src/service/finalized_state/disk_format/scan.rs @@ -43,6 +43,12 @@ impl From<&[u8; 32]> for SaplingScannedResult { } } +impl From 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))]