Skip to content

Commit 3f75895

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

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
@@ -173,7 +173,7 @@ impl Block {
173173
/// ## Errors
174174
///
175175
/// Returns an error if decoding fails.
176-
pub fn from_bytes(encoded_block: &[u8], hasher: &HashFunction) -> anyhow::Result<DecodedBlock> {
176+
pub fn from_bytes(encoded_block: &[u8], hasher: &HashFunction) -> anyhow::Result<Block> {
177177
// Decoded block hdr
178178
let (block_hdr, block_hdr_size, _) = BlockHeader::from_bytes(encoded_block, hasher)?;
179179

0 commit comments

Comments
 (0)