Skip to content

StateFieldSpec.update method

StateFieldSpec › update

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

Signature:

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

Parameters:

ParameterTypeDescription
valueValueThe previous value of the field.
transactionTransactionThe transaction to compute the new value from.

Returns: ValueThe new value of the field.