Function darkfi_sdk::wasm::util::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.