pub fn read_commodity_arg<T>(
caller: &mut Caller<'_, T>,
arg: Option<Rooted<StructRef>>,
) -> Result<Option<(i64, i64, Uuid)>>Expand description
Reads a $commodity arg ref into its (numer, denom, commodity_id)
components. Mirrors read_string_arg for the Commodity numeric stratum:
fields 0-1 are numer/denom, fields 2-3 are the UUID halves. None
returns for a null ref; bad shape surfaces as a structured trap.