-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Added vault query as tokenizable service. #926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| override fun call() { | ||
| serviceHub.vaultService.unconsumedStates<Cash.State>().filter { true } | ||
| waitForLedgerCommit(SecureHash.zeroHash) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd take this opportunity to delete this test
| private class VaultQueryFlow : FlowLogic<List<StateAndRef<ContractState>>>() { | ||
| @Suspendable | ||
| override fun call(): List<StateAndRef<ContractState>> { | ||
| return serviceHub.vaultQueryService.queryBy<ContractState>().states |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing waitForLedgerCommit
| val stx = node1.services.signInitialTransaction(ptx) | ||
|
|
||
| node1.registerFlowFactory(VaultQueryFlow::class) { | ||
| WaitingFlows.Committer(it) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to do the map
* Added vault query as tokenizable service. * Add JUnit test to test access of vault query service within a flow. * Improved JUnit test to correctly validate tokenizable behaviour. * Minor cleanup
No description provided.