mirror of
https://github.com/corda/corda.git
synced 2025-06-17 06:38:21 +00:00
[CORDA-860]: Retrieving state by recordTime.max()
throws a cast exception (fixed) (#3090)
This commit is contained in:
committed by
GitHub
parent
173d0f2ada
commit
5318c395ee
@ -395,7 +395,7 @@ class NodeVaultService(
|
||||
val count = builder { VaultSchemaV1.VaultStates::recordedTime.count() }
|
||||
val countCriteria = QueryCriteria.VaultCustomQueryCriteria(count, Vault.StateStatus.ALL)
|
||||
val results = queryBy(contractStateType, criteria.and(countCriteria))
|
||||
totalStates = results.otherResults[0] as Long
|
||||
totalStates = results.otherResults.last() as Long
|
||||
}
|
||||
|
||||
val session = getSession()
|
||||
|
Reference in New Issue
Block a user