Function darkfi::runtime::import::db::db_del

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

Remove a key from the database.

This function can be called only from the Deploy or Update ContractSection. Returns SUCCESS on success, otherwise returns an error value.

Permissions: deploy, update