diff --git a/pallets/pass/src/lib.rs b/pallets/pass/src/lib.rs index 0d52506..44ab8bc 100644 --- a/pallets/pass/src/lib.rs +++ b/pallets/pass/src/lib.rs @@ -392,8 +392,7 @@ impl, I: 'static> Pallet { } fn task_name_from_session_key(session_key: &T::AccountId) -> TaskName { - use sp_runtime::format; - blake2_256(format!("remove_session_key_{:?}", &session_key.encode()).as_bytes()) + blake2_256(&("remove_session_key", session_key).encode()) } /// Infallibly cancels an already scheduled session key removal