mirror of
https://github.com/corda/corda.git
synced 2025-06-23 17:53:31 +00:00
Transaction notes now stored individually per row.
This commit is contained in:
@ -38,8 +38,7 @@ val DEFAULT_SESSION_ID = 0L
|
||||
* Active means they haven't been consumed yet (or we don't know about it).
|
||||
* Relevant means they contain at least one of our pubkeys.
|
||||
*/
|
||||
class Vault(val states: Iterable<StateAndRef<ContractState>>,
|
||||
val transactionNotes: Map<SecureHash, Set<String>> = emptyMap()) {
|
||||
class Vault(val states: Iterable<StateAndRef<ContractState>>) {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
inline fun <reified T : ContractState> statesOfType() = states.filter { it.state.data is T } as List<StateAndRef<T>>
|
||||
|
||||
|
Reference in New Issue
Block a user