From 0360a33e5c89f2f04cd2448eb7104fe6e878392d Mon Sep 17 00:00:00 2001 From: Roger Willis Date: Wed, 6 Feb 2019 09:52:11 +0000 Subject: [PATCH] State pointers are always resolved, so the kdocs should reflect this. (#4716) --- .../net/corda/core/transactions/TransactionBuilder.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/src/main/kotlin/net/corda/core/transactions/TransactionBuilder.kt b/core/src/main/kotlin/net/corda/core/transactions/TransactionBuilder.kt index 4dfdb95815..59862de228 100644 --- a/core/src/main/kotlin/net/corda/core/transactions/TransactionBuilder.kt +++ b/core/src/main/kotlin/net/corda/core/transactions/TransactionBuilder.kt @@ -503,11 +503,9 @@ open class TransactionBuilder( private fun checkReferencesUseSameNotary() = referencesWithTransactionState.map { it.notary }.toSet().size == 1 /** - * If any inputs or outputs added to the [TransactionBuilder] contain [StatePointer]s, then this method can be - * optionally called to resolve those [StatePointer]s to [StateAndRef]s. The [StateAndRef]s are then added as - * reference states to the transaction. The effect is that the referenced data is carried along with the - * transaction. This may or may not be appropriate in all circumstances, which is why calling this method is - * optional. + * If any inputs or outputs added to the [TransactionBuilder] contain [StatePointer]s, then this method is used + * to resolve those [StatePointer]s to [StateAndRef]s. The [StateAndRef]s are then added as reference states to + * the transaction. The effect is that the referenced data is carried along with the transaction. * * If this method is called outside the context of a flow, a [ServiceHub] instance must be passed to this method * for it to be able to resolve [StatePointer]s. Usually for a unit test, this will be an instance of mock services.