Skip to content

Commit febb99d

Browse files
Fixed naming in query flows
1 parent 3dd5447 commit febb99d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

onixlabs-corda-core-workflow/src/main/kotlin/io/onixlabs/corda/core/workflow/FindStateFlow.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ import kotlin.reflect.jvm.jvmErasure
3030
* Represents the base class for implementing flows to find individual states.
3131
*
3232
* @property criteria The vault query criteria expression.
33-
* @property specification The vault query page specification.
33+
* @property pageSpecification The vault query page specification.
3434
* @property contractStateType The vault query contract state type.
3535
*/
3636
@StartableByRPC
3737
@StartableByService
3838
abstract class FindStateFlow<T> : FlowLogic<StateAndRef<T>?>() where T : ContractState {
3939
protected abstract val criteria: QueryCriteria
40-
protected abstract val specification: PageSpecification
40+
protected abstract val pageSpecification: PageSpecification
4141

4242
@Suppress("UNCHECKED_CAST")
4343
protected val contractStateType: Class<T>
4444
get() = javaClass.kotlin.supertypes[0].arguments[0].type?.jvmErasure?.javaObjectType as Class<T>
4545

4646
@Suspendable
4747
override fun call(): StateAndRef<T>? {
48-
return serviceHub.vaultService.queryBy(contractStateType, criteria, specification).states.singleOrNull()
48+
return serviceHub.vaultService.queryBy(contractStateType, criteria, pageSpecification).states.singleOrNull()
4949
}
5050
}

onixlabs-corda-core-workflow/src/main/kotlin/io/onixlabs/corda/core/workflow/FindStatesFlow.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ abstract class FindStatesFlow<T : ContractState> : FlowLogic<List<StateAndRef<T>
4949
override fun call(): List<StateAndRef<T>> {
5050
return serviceHub.vaultService.queryBy(contractStateType, criteria, pageSpecification, sorting).states
5151
}
52-
}
52+
}

0 commit comments

Comments
 (0)