From 74e2531585779f1b0da05d4213f525e0bd18f423 Mon Sep 17 00:00:00 2001 From: Gav Date: Wed, 31 Jan 2018 07:03:25 +0100 Subject: [PATCH] Strip unneeded logic. --- substrate/native-runtime/std/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/substrate/native-runtime/std/src/lib.rs b/substrate/native-runtime/std/src/lib.rs index fba5462f7d..e24e9d7bb3 100644 --- a/substrate/native-runtime/std/src/lib.rs +++ b/substrate/native-runtime/std/src/lib.rs @@ -102,9 +102,7 @@ pub fn storage_root() -> [u8; 32] { /// "Commit" all existing operations and get the resultant storage root. pub fn enumerated_trie_root(serialised_values: &[&[u8]]) -> [u8; 32] { - ext::with(|ext| - triehash::ordered_trie_root(serialised_values.iter().map(|s| s.to_vec())).0 - ).unwrap_or([0u8; 32]) + triehash::ordered_trie_root(serialised_values.iter().map(|s| s.to_vec())).0 } /// Conduct a Keccak-256 hash of the given data.