mirror of
https://github.com/corda/corda.git
synced 2025-06-14 21:28:14 +00:00
Fix for dodgy formatting of the reference states part of api-transaction.rst (#4495)
This commit is contained in:
@ -94,12 +94,11 @@ to "walk the chain" and verify that each input was generated through a valid seq
|
|||||||
Reference input states
|
Reference input states
|
||||||
~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
A reference input state is added to a transaction as a ``ReferencedStateAndRef``. A ``ReferencedStateAndRef`` can be
|
|
||||||
obtained from a ``StateAndRef`` by calling the ``StateAndRef.referenced()`` method which returns a
|
|
||||||
``ReferencedStateAndRef``.
|
|
||||||
|
|
||||||
.. warning:: Reference states are only available on Corda networks with a minimum platform version >= 4.
|
.. warning:: Reference states are only available on Corda networks with a minimum platform version >= 4.
|
||||||
|
|
||||||
|
A reference input state is added to a transaction as a ``ReferencedStateAndRef``. A ``ReferencedStateAndRef`` can be
|
||||||
|
obtained from a ``StateAndRef`` by calling the ``StateAndRef.referenced()`` method which returns a ``ReferencedStateAndRef``.
|
||||||
|
|
||||||
.. container:: codeset
|
.. container:: codeset
|
||||||
|
|
||||||
.. literalinclude:: ../../docs/source/example-code/src/main/kotlin/net/corda/docs/kotlin/FlowCookbook.kt
|
.. literalinclude:: ../../docs/source/example-code/src/main/kotlin/net/corda/docs/kotlin/FlowCookbook.kt
|
||||||
|
Reference in New Issue
Block a user