Skip to content

Commit

Permalink
fix(fc-pallet-pass): use encoded session key to format on non-std env…
Browse files Browse the repository at this point in the history
…ironments
  • Loading branch information
pandres95 committed Nov 28, 2024
1 parent 4a5f224 commit a2fd3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/pass/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,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}").as_bytes())
blake2_256(format!("remove_session_key_{:?}", &session_key.encode()).as_bytes())
}

/// Infallibly cancels an already scheduled session key removal
Expand Down

0 comments on commit a2fd3d7

Please sign in to comment.