mirror of
https://github.com/corda/corda.git
synced 2025-01-02 03:06:45 +00:00
Merge pull request #7156 from ulrikrasmussen/squelch-spurious-warning
CORDA-4257: Do not emit warning when StatePointer.isResolved = false
This commit is contained in:
commit
bd120028ce
@ -741,9 +741,11 @@ open class TransactionBuilder(
|
|||||||
addReferenceState(resolvedStateAndRef.referenced())
|
addReferenceState(resolvedStateAndRef.referenced())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (nextStatePointer.isResolved) {
|
||||||
log.warn("WARNING: You must pass in a ServiceHub reference to TransactionBuilder to resolve " +
|
log.warn("WARNING: You must pass in a ServiceHub reference to TransactionBuilder to resolve " +
|
||||||
"state pointers outside of flows. If you are writing a unit test then pass in a " +
|
"state pointers outside of flows. If you are writing a unit test then pass in a " +
|
||||||
"MockServices instance.")
|
"MockServices instance.")
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user