Trait multiversx_sc::types::TxEnv

source ·
pub trait TxEnv: Sized {
    type Api: CallTypeApi;
    type RHExpect: Default;

    // Required methods
    fn resolve_sender_address(&self) -> ManagedAddress<Self::Api>;
    fn default_gas_annotation(&self) -> ManagedBuffer<Self::Api>;
    fn default_gas_value(&self) -> u64;
}

Required Associated Types§

source

type Api: CallTypeApi

source

type RHExpect: Default

Type built by result handlers that translates into the “expect” section in scenarios.

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Api> TxEnv for TxScEnv<Api>
where Api: CallTypeApi,

§

type Api = Api

§

type RHExpect = ()