Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Stefan Muto's user avatar