Skip to content

Commit

Permalink
fix: the CBOR header
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgar2017 committed Sep 14, 2024
1 parent 666de17 commit 20f20ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion era-compiler-common/src/hash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl Hash {
};

let mut cbor = Vec::with_capacity(64);
cbor.extend(hex::decode("a2646970667358").expect("Always valid"));
cbor.extend(hex::decode("a1646970667358").expect("Always valid"));
cbor.push(data.len() as u8);
cbor.extend_from_slice(data);
cbor.extend((cbor.len() as u16).to_be_bytes());
Expand Down

0 comments on commit 20f20ca

Please sign in to comment.