We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f75895 commit c6f93e3Copy full SHA for c6f93e3
rust/immutable-ledger/src/serialize.rs
@@ -122,7 +122,7 @@ impl Block {
122
/// ## Errors
123
///
124
/// Returns an error if encoding fails.
125
- pub fn to_bytes(&self) -> anyhow::Result<EncodedBlock> {
+ pub fn to_bytes(&self) -> anyhow::Result<Vec<u8>> {
126
// Enforce block data to be cbor encoded in the form of CBOR byte strings
127
// which are just (ordered) series of bytes without further interpretation
128
let _ = minicbor::Decoder::new(&self.block_data.0).bytes()?;
0 commit comments