Trait odra_core::ContractRef
source · pub trait ContractRef {
// Required methods
fn new(env: Rc<ContractEnv>, address: Address) -> Self;
fn address(&self) -> &Address;
}Expand description
Trait that needs to be implemented by all contract refs.
Required Methods§
sourcefn new(env: Rc<ContractEnv>, address: Address) -> Self
fn new(env: Rc<ContractEnv>, address: Address) -> Self
Creates a new instance of the Contract Ref.
Object Safety§
This trait is not object safe.