pub fn program_return(
log_collector: &Option<Rc<RefCell<LogCollector>>>,
program_id: &Pubkey,
data: &[u8],
)👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
Log return data as from the program itself. This line will not be present if no return data was set, or if the return data was set to zero length.
The general form is:
"Program return: <program-id> <program-generated-data-in-base64>"That is, any program-generated output is guaranteed to be prefixed by “Program return: “