pub trait Address {
    // Required method
    fn generate(env: &Env) -> Address;
}
Available on crate feature testutils only.

Required Methods§

source

fn generate(env: &Env) -> Address

Generate a new Address.

Implementation note: this always builds the contract addresses now. This shouldn’t normally matter though, as contracts should be agnostic to the underlying Address value.

Object Safety§

This trait is not object safe.

Implementors§