Update serialize.rs

This commit is contained in:
GarmashAlex 2025-04-24 16:37:25 +03:00 committed by GitHub
parent 024f87e655
commit 604b095540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ impl Serialize for TapTree {
// safe to cast from usize to u8 // safe to cast from usize to u8
buf.push(leaf_info.merkle_branch().len() as u8); buf.push(leaf_info.merkle_branch().len() as u8);
buf.push(leaf_info.version().to_consensus()); buf.push(leaf_info.version().to_consensus());
leaf_info.script().consensus_encode(&mut buf).expect("Vecs dont err"); leaf_info.script().consensus_encode(&mut buf).expect("Vecs don't err");
} }
buf buf
} }