ink_env::call

Trait FromAddr

Source
pub trait FromAddr {
    // Required method
    fn from_addr(addr: H160) -> Self;
}
Expand description

Contracts that can be constructed from an AccountId.

§Note

This is needed because of conflicting implementations of From<T> for T in the generated code of ink.

But it is possible to use From<AccountId> for T with crate::AccountIdGuard bound.

Required Methods§

Source

fn from_addr(addr: H160) -> Self

Creates the contract instance from the account ID of the already instantiated contract.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§