We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b36365 commit b447638Copy full SHA for b447638
1 file changed
operator/mina_account/lib/src/lib.rs
@@ -77,7 +77,7 @@ pub fn parse_proof(proof_bytes: &[u8]) -> Result<Vec<MerklePath>, String> {
77
let left_or_right = bytes
78
.first()
79
.ok_or("left_or_right byte not found".to_string())?;
80
- let hash = Fp::from_bytes(bytes).map_err(|err| {
+ let hash = Fp::from_bytes(&bytes[1..]).map_err(|err| {
81
format!("Failed to convert merkle hash into field element: {err}")
82
})?;
83
match left_or_right {
0 commit comments