Skip to content

Commit b447638

Browse files
committed
Fix merkle proof deserialization
1 parent 3b36365 commit b447638

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • operator/mina_account/lib/src

operator/mina_account/lib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub fn parse_proof(proof_bytes: &[u8]) -> Result<Vec<MerklePath>, String> {
7777
let left_or_right = bytes
7878
.first()
7979
.ok_or("left_or_right byte not found".to_string())?;
80-
let hash = Fp::from_bytes(bytes).map_err(|err| {
80+
let hash = Fp::from_bytes(&bytes[1..]).map_err(|err| {
8181
format!("Failed to convert merkle hash into field element: {err}")
8282
})?;
8383
match left_or_right {

0 commit comments

Comments
 (0)