multiversx_sc_scenario

Trait ScenarioTxWhitebox

Source
pub trait ScenarioTxWhitebox {
    type Returns;

    // Required method
    fn whitebox<ContractObj, F>(
        self,
        contract_obj: fn() -> ContractObj,
        f: F,
    ) -> Self::Returns
       where ContractObj: ContractBase<Api = DebugApi> + 'static,
             F: FnOnce(ContractObj);
}

Required Associated Types§

Required Methods§

Source

fn whitebox<ContractObj, F>( self, contract_obj: fn() -> ContractObj, f: F, ) -> Self::Returns
where ContractObj: ContractBase<Api = DebugApi> + 'static, F: FnOnce(ContractObj),

Runs a lambda function in the name of a smart contract, with the configured transaction context.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'w, From, Payment, CodeValue, RH> ScenarioTxWhitebox for Tx<ScenarioEnvExec<'w>, From, (), Payment, (), DeployCall<ScenarioEnvExec<'w>, Code<CodeValue>>, RH>

Source§

impl<'w, From, To, Payment, RH> ScenarioTxWhitebox for Tx<ScenarioEnvExec<'w>, From, To, Payment, (), (), RH>

Source§

impl<'w, From, To, Payment, RH> ScenarioTxWhitebox for Tx<ScenarioEnvExec<'w>, From, To, Payment, (), FunctionCall<StaticApi>, RH>

Source§

impl<'w, To, Payment, RH> ScenarioTxWhitebox for Tx<ScenarioEnvQuery<'w>, (), To, Payment, (), (), RH>

Source§

impl<'w, To, Payment, RH> ScenarioTxWhitebox for Tx<ScenarioEnvQuery<'w>, (), To, Payment, (), FunctionCall<StaticApi>, RH>