Skip to main content

return_data_string

Function return_data_string 

Source
pub fn return_data_string(
    program: &Address,
    out: &mut [u8; 254],
) -> Result<usize, ProgramError>
Expand description

The string a token program left in the return data, copied into out; the result is its length. Refuses return data from any other program and anything longer than the buffer.