pub fn update_cap_grant(
    old_grant_action_hash: ActionHash,
    new_grant_value: CapGrantEntry
) -> ExternResult<ActionHash>
Expand description

Update a capability grant.

Wraps the update HDK function with system type parameters set. This guards against updating application entries or setting the wrong entry types.

Capability grant updates work exactly as a delete+create of the old+new grant entries.

The first argument is the action hash of the old grant being deleted as per delete_cap_grant. The second argument is the entry value of the new grant to create as per create_cap_grant.