All Questions
Tagged with accountdata convert
1 question
7
votes
2
answers
404
views
How to get bytes [u8; 32] from AccountId?
There is a way to convert [u8; 32] to AccountId
T::AccountId::decode(&mut &bytes[..]).unwrap_or_default();
but how to do the reverse?
let sender: T::AccountId = ensure_signed(origin)?;
let ...