mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
Do not emit warning when StatePointer.isResolved = false
The warning is misleading because it is emitted in the case where the ServiceHub reference is not null but one or more state pointers were configured to not be automatically resolved by the transaction builder.
This commit is contained in:
parent
bc6a6ee2ae
commit
af1dbf4c6d
@ -741,9 +741,11 @@ open class TransactionBuilder(
|
|||||||
addReferenceState(resolvedStateAndRef.referenced())
|
addReferenceState(resolvedStateAndRef.referenced())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.warn("WARNING: You must pass in a ServiceHub reference to TransactionBuilder to resolve " +
|
if (nextStatePointer.isResolved) {
|
||||||
"state pointers outside of flows. If you are writing a unit test then pass in a " +
|
log.warn("WARNING: You must pass in a ServiceHub reference to TransactionBuilder to resolve " +
|
||||||
"MockServices instance.")
|
"state pointers outside of flows. If you are writing a unit test then pass in a " +
|
||||||
|
"MockServices instance.")
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user