Skip to content

Commit

Permalink
Update rust/immutable-ledger/src/serialize.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Pozhylenkov <[email protected]>
  • Loading branch information
cong-or and Mr-Leshiy authored Nov 6, 2024
1 parent 3f75895 commit c6f93e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/immutable-ledger/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Block {
/// ## Errors
///
/// Returns an error if encoding fails.
pub fn to_bytes(&self) -> anyhow::Result<EncodedBlock> {
pub fn to_bytes(&self) -> anyhow::Result<Vec<u8>> {
// Enforce block data to be cbor encoded in the form of CBOR byte strings
// which are just (ordered) series of bytes without further interpretation
let _ = minicbor::Decoder::new(&self.block_data.0).bytes()?;
Expand Down

0 comments on commit c6f93e3

Please sign in to comment.