From 9c5ad00585b2e99d17328540f6261aefe9b81620 Mon Sep 17 00:00:00 2001 From: Gav Date: Mon, 15 May 2023 18:13:41 +0100 Subject: [PATCH] Tweak to avoid minor entropy loss --- frame/system/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/system/src/lib.rs b/frame/system/src/lib.rs index 4c752045215f8..71e27cd4e32fa 100644 --- a/frame/system/src/lib.rs +++ b/frame/system/src/lib.rs @@ -1318,7 +1318,7 @@ impl Pallet { ExecutionPhase::::put(Phase::Initialization); storage::unhashed::put(well_known_keys::EXTRINSIC_INDEX, &0u32); let entropy = (b"frame_system::initialize", parent_hash).using_encoded(blake2_256); - storage::unhashed::put(well_known_keys::INTRABLOCK_ENTROPY, &entropy[..]); + storage::unhashed::put_raw(well_known_keys::INTRABLOCK_ENTROPY, &entropy[..]); >::put(number); >::put(digest); >::put(parent_hash);