multiversx_sc_scenario::imports

Type Alias OptionalArg

Source
pub type OptionalArg<T> = OptionalValue<T>;
👎Deprecated since 0.29.0: Alias kept for backwards compatibility. Replace with OptionalValue
Expand description

A smart contract argument or result that can be missing.

If arguments stop before this argument, None will be returned. As an endpoint result, the contract decides if it produces it or not.

As a principle, optional arguments or results should come last, otherwise there is ambiguity as to how to interpret what comes after.

Aliased Type§

enum OptionalArg<T> {
    Some(T),
    None,
}

Variants§

§

Some(T)

§

None