Skip to content

StateFieldSpec.update method

StateFieldSpec › update

Unofficial

Compute a new value from the field's previous value and a transaction.

Signature:

update(value: Value, transaction: Transaction): Value

Parameters:

Parameter Type Description
value Value The previous value.
transaction Transaction The transaction.

Returns: ValueThe updated value.