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§
type Api: CallTypeApi
Required Methods§
fn resolve_sender_address(&self) -> ManagedAddress<Self::Api>
fn default_gas_annotation(&self) -> ManagedBuffer<Self::Api>
fn default_gas_value(&self) -> u64
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.