darkfi_sdk::wasm::util

Function parse_ret

Source
pub(crate) fn parse_ret(ret: i64) -> GenericResult<Option<Vec<u8>>>
Expand description

Auxiliary function to parse db_get return value. If either of these functions returns a negative integer error code, convert it into a ContractError.