multiversx_sc_scenario::api

Type Alias StaticApi

Source
pub type StaticApi = VMHooksApi<StaticApiBackend>;

Aliased Type§

struct StaticApi { /* private fields */ }

Implementations§

Source§

impl StaticApi

Source

pub fn is_current_address_placeholder(address: &Address) -> bool

The static API does not allow interrogating the Tx input, but does offer a placeholder for the current (“SC”) address, to help with contract calls.

This placeholder then needs to be converted to something useful.

Source

pub fn reset()

Trait Implementations§

Source§

impl Debug for StaticApi

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more