pub trait ToAccountId {
    // Required method
    fn to_account_id(&self) -> AccountId;
}
Expand description

A convenience trait for converting different wrappers around an [u8; 32] into an ink_primitives::AccountId. Implemented for any AsRef<[u8; 32]> by default.

Required Methods§

Implementors§

source§

impl<T: AsRef<[u8; 32]>> ToAccountId for T