Trait soroban_sdk::testutils::Address
source · pub trait Address {
// Required methods
fn random(env: &Env) -> Address;
fn contract_id(&self) -> BytesN<32>;
}
Available on crate feature
testutils
only.Required Methods§
sourcefn random(env: &Env) -> Address
fn random(env: &Env) -> Address
Create a random 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.