sui_adapter_latest::programmable_transactions::trace_utils

Function add_coin_obj_info

Source
pub fn add_coin_obj_info(
    trace_builder_opt: &mut Option<MoveTraceBuilder>,
    coin_infos: &mut Vec<(u64, ObjectID)>,
    balance: u64,
    id: ObjectID,
)
Expand description

Adds coin object info to the mutable vector passed as an argument. As is the case for all other public functions in this module, its body is (and must be) enclosed in an if statement checking if tracing is enabled.