db_set

Function db_set 

Source
pub fn db_set(
    db_handle: DbHandle,
    key: &[u8],
    value: &[u8],
) -> GenericResult<()>
Expand description

Set a key and value in the on-chain database for the given DbHandle.

Returns Ok on success.

ยงPermissions

  • ContractSection::Deploy
  • ContractSection::Update