pub fn update(
hash: HeaderHash,
create_input: CreateInput
) -> ExternResult<HeaderHash>
Expand description
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 standardises the internals of higher level create functions.