Skip to content

Commit c6f93e3

Browse files
cong-orMr-Leshiy
andauthored
Update rust/immutable-ledger/src/serialize.rs
Co-authored-by: Alex Pozhylenkov <[email protected]>
1 parent 3f75895 commit c6f93e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/immutable-ledger/src/serialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl Block {
122122
/// ## Errors
123123
///
124124
/// Returns an error if encoding fails.
125-
pub fn to_bytes(&self) -> anyhow::Result<EncodedBlock> {
125+
pub fn to_bytes(&self) -> anyhow::Result<Vec<u8>> {
126126
// Enforce block data to be cbor encoded in the form of CBOR byte strings
127127
// which are just (ordered) series of bytes without further interpretation
128128
let _ = minicbor::Decoder::new(&self.block_data.0).bytes()?;

0 commit comments

Comments
 (0)