From 20f20ca069c9bfea46e97d2cdadeac10ff198947 Mon Sep 17 00:00:00 2001 From: Oleksandr Zarudnyi Date: Sat, 14 Sep 2024 10:14:47 +0800 Subject: [PATCH] fix: the CBOR header --- era-compiler-common/src/hash/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/era-compiler-common/src/hash/mod.rs b/era-compiler-common/src/hash/mod.rs index d7dac42..4273d4e 100644 --- a/era-compiler-common/src/hash/mod.rs +++ b/era-compiler-common/src/hash/mod.rs @@ -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());