Trait multiversx_sc_snippets::imports::TxToSpecified
source · pub trait TxToSpecified<Env>: TxTo<Env> + AnnotatedValue<Env, ManagedAddress<<Env as TxEnv>::Api>>where
Env: TxEnv,{
// Provided method
fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
where F: FnOnce(&ManagedAddress<<Env as TxEnv>::Api>) -> R { ... }
}
Expand description
Marks the non-empty recipient of a transaction.
Enforces the recipient to be explicitly specified.
Provided Methods§
sourcefn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
fn with_address_ref<F, R>(&self, env: &Env, f: F) -> R
Avoids a clone when performing transfer-execute.
Other than that, does thesame as AnnotatedValue::into_value
.
Object Safety§
This trait is not object safe.