move comment

This commit is contained in:
Grzegorz Świrski 2025-04-16 10:07:56 +02:00 committed by Qyriad
parent 7daabb1964
commit 92085a75e0

View file

@ -422,13 +422,13 @@ impl From<(SparseMerklePath, Word)> for SparseValuePath {
}
}
impl TryFrom<ValuePath> for SparseValuePath {
type Error = MerkleError;
/// # Errors
///
/// This conversion returns [MerkleError::DepthTooBig] if the path length is greater than
/// [`SMT_MAX_DEPTH`].
impl TryFrom<ValuePath> for SparseValuePath {
type Error = MerkleError;
fn try_from(other: ValuePath) -> Result<Self, MerkleError> {
let ValuePath { value, path } = other;
let path = SparseMerklePath::try_from(path)?;