move comment
This commit is contained in:
parent
c9ad4e570d
commit
a988fb2c8c
1 changed files with 4 additions and 4 deletions
|
@ -422,13 +422,13 @@ impl From<(SparseMerklePath, Word)> for SparseValuePath {
|
|||
}
|
||||
}
|
||||
|
||||
/// # Errors
|
||||
///
|
||||
/// This conversion returns [MerkleError::DepthTooBig] if the path length is greater than
|
||||
/// [`SMT_MAX_DEPTH`].
|
||||
impl TryFrom<ValuePath> for SparseValuePath {
|
||||
type Error = MerkleError;
|
||||
|
||||
/// # Errors
|
||||
///
|
||||
/// This conversion returns [MerkleError::DepthTooBig] if the path length is greater than
|
||||
/// [`SMT_MAX_DEPTH`].
|
||||
fn try_from(other: ValuePath) -> Result<Self, MerkleError> {
|
||||
let ValuePath { value, path } = other;
|
||||
let path = SparseMerklePath::try_from(path)?;
|
||||
|
|
Loading…
Add table
Reference in a new issue