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§

source

fn new(env: Rc<ContractEnv>, address: Address) -> Self

Creates a new instance of the Contract Ref.

source

fn address(&self) -> &Address

Returns the address of the contract.

Object Safety§

This trait is not object safe.

Implementors§