Skip to content

Commit

Permalink
fix(fc-pallet-pass): use Tuple::encode to construct task_name to …
Browse files Browse the repository at this point in the history
…remove a specific `session_key`, as it is more stable.
  • Loading branch information
pandres95 committed Dec 15, 2024
1 parent 4b43368 commit 71d38dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pallets/pass/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
}

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
Expand Down

0 comments on commit 71d38dc

Please sign in to comment.