db_contains_key_local

Function db_contains_key_local 

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

Check if a tx-local 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

  • ContractSection::Deploy
  • ContractSection::Metadata
  • ContractSection::Exec