diff --git a/src/ffi.rs b/src/ffi.rs index f2e7526..92d9ab8 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -354,11 +354,10 @@ mod tests { parent_hash_l, ]; - let siblings: Vec = sibling_hashes + let siblings_mpk: Value = Value::Array(sibling_hashes .iter() - .map(|c| c.to_le_bytes_vec()) - .flatten() - .collect(); + .map(u256_to_mpack) + .collect::>()); let root = treehash(hashes.as_slice());