pub(crate) fn db_contains_key(
    ctx: FunctionEnvMut<'_, Env>,
    ptr: WasmPtr<u8>,
    ptr_len: u32
) -> i64
Expand description

Check if a database contains a given key.

Returns 1 if the key is found. Returns 0 if the key is not found and there are no errors. Otherwise, returns an error code.

Permissions: deploy, metadata, exec