StateFieldSpec.update method
StateFieldSpec › update
Compute a new value from the field's previous value and a transaction.Signature:
update(value: Value, transaction: Transaction): ValueParameters:
| Parameter | Type | Description |
|---|---|---|
| value | Value | The previous value of the field. |
| transaction | Transaction | The transaction to compute the new value from. |
Returns: Value — The new value of the field.