multiversx_sc::types

Type Alias TxBaseWithEnv

Source
pub type TxBaseWithEnv<Env> = Tx<Env, (), (), (), (), (), ()>;

Aliased Type§

struct TxBaseWithEnv<Env> {
    pub env: Env,
    pub from: (),
    pub to: (),
    pub payment: (),
    pub gas: (),
    pub data: (),
    pub result_handler: (),
}

Fields§

§env: Env§from: ()§to: ()§payment: ()§gas: ()§data: ()§result_handler: ()

Implementations§

Source§

impl<Env> TxBaseWithEnv<Env>
where Env: TxEnv,

Source

pub fn new_with_env(env: Env) -> Self

Constructor, needs to take an environment object.

Source§

impl<Api> TxBaseWithEnv<TxScEnv<Api>>
where Api: CallTypeApi,

Source

pub fn new_tx_from_sc() -> Self