CONTENT CONTRACT · VERSION 1
count_item
Count an item in the inventory of the event actor or the invocation owner.
Signature
(ActorRef, ItemId) -> CountTypechecked usage
The snapshot must declare the scope required by this read.
local value = ctx.read.count_item(ctx.event.actor, ctx.event.item)