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
.
pub(crate) fn parse_ret(ret: i64) -> GenericResult<Option<Vec<u8>>>
Auxiliary function to parse db_get return value.
If either of these functions returns a negative integer error code,
convert it into a ContractError
.