use gear_core::ids::ActorId;
use gsdk::ext::sp_runtime::AccountId32;
pub trait IntoAccountId32 {
fn into_account_id(self) -> AccountId32;
}
impl IntoAccountId32 for AccountId32 {
fn into_account_id(self) -> AccountId32 {
self
}
}
impl IntoAccountId32 for &AccountId32 {
fn into_account_id(self) -> AccountId32 {
self.clone()
}
}
impl IntoAccountId32 for ActorId {
fn into_account_id(self) -> AccountId32 {
AccountId32::new(self.into_bytes())
}
}
impl IntoAccountId32 for &ActorId {
fn into_account_id(self) -> AccountId32 {
AccountId32::new(self.into_bytes())
}
}