darkfi_sdk::wasm::util

Function set_return_data

Source
pub fn set_return_data(data: &[u8]) -> Result<(), ContractError>
Expand description

Calls the set_return_data WASM function. Returns Ok(()) on success. Otherwise, convert the i64 error code into a ContractError.