From e976c560ee3f8c7d36d9fbec8e98c29283f1aa34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Pr=C5=A1i=C4=87?= Date: Tue, 16 Jan 2024 12:10:21 +0100 Subject: [PATCH] Fix data root computation on blob transactions. (#370) --- pallets/system/src/submitted_data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/system/src/submitted_data.rs b/pallets/system/src/submitted_data.rs index bf41a00f9..8fdbe26cf 100644 --- a/pallets/system/src/submitted_data.rs +++ b/pallets/system/src/submitted_data.rs @@ -362,7 +362,7 @@ where .into_iter() .filter(|v| !v.is_empty()) .map(|leaf| { - if call_type == SubTrie::Right { + if call_type == SubTrie::Left { leaf } else { keccak_256(leaf.as_slice()).to_vec()