Function hdk::entry::update

source · []
pub fn update(
    hash: HeaderHash,
    create_input: CreateInput
) -> ExternResult<HeaderHash>
Expand description

General function that can update any entry type.

This is used under the hood by update_entry, update_cap_grant and update_cap_claim.

@todo implement update_cap_claim

The host builds an Update header for the passed entry value and commits a new update to the chain.

Usually you don’t need to use this function directly; it is the most general way to update an entry and standardizes the internals of higher level update functions.