From f4c6d7edf897b61d873c83dc22136270cf91d570 Mon Sep 17 00:00:00 2001 From: yjhmelody Date: Fri, 12 May 2023 22:05:24 +0800 Subject: [PATCH] remove duplicated --- frame/balances/src/tests/mod.rs | 12 +----------- frame/system/src/tests.rs | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/frame/balances/src/tests/mod.rs b/frame/balances/src/tests/mod.rs index 9c85341922690..4731dbf8ed32b 100644 --- a/frame/balances/src/tests/mod.rs +++ b/frame/balances/src/tests/mod.rs @@ -310,20 +310,10 @@ fn weights_sane() { fn check_whitelist() { let whitelist: BTreeSet = AllPalletsWithSystem::whitelisted_storage_keys() .iter() - .map(|e| HexDisplay::from(&e.key).to_string()) + .map(|s| HexDisplay::from(&s.key).to_string()) .collect(); // Inactive Issuance assert!(whitelist.contains("c2261276cc9d1f8598ea4b6a74b15c2f1ccde6872881f893a21de93dfe970cd5")); // Total Issuance assert!(whitelist.contains("c2261276cc9d1f8598ea4b6a74b15c2f57c875e4cff74148e4628f264b974c80")); - // Block Number - assert!(whitelist.contains("26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac")); - // Execution Phase - assert!(whitelist.contains("26aa394eea5630e07c48ae0c9558cef7ff553b5a9862a516939d82b3d3d8661a")); - // Event Count - assert!(whitelist.contains("26aa394eea5630e07c48ae0c9558cef70a98fdbe9ce6c55837576c60c7af3850")); - // System Events - assert!(whitelist.contains("26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7")); - // System BlockWeight - assert!(whitelist.contains("26aa394eea5630e07c48ae0c9558cef734abf5cb34d6244378cddbf18e849d96")); } diff --git a/frame/system/src/tests.rs b/frame/system/src/tests.rs index 1b642e2a2bb45..dc245f0642e2f 100644 --- a/frame/system/src/tests.rs +++ b/frame/system/src/tests.rs @@ -34,7 +34,7 @@ use sp_runtime::{ fn check_whitelist() { let whitelist: BTreeSet = AllPalletsWithSystem::whitelisted_storage_keys() .iter() - .map(|e| HexDisplay::from(&e.key).to_string()) + .map(|s| HexDisplay::from(&s.key).to_string()) .collect(); // Block Number