Skip to content

Commit 4fbf31b

Browse files
Amendments from initial peer review.
1 parent aec0da6 commit 4fbf31b

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract/accounts/Account.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ open class Account(
7676
return this === other || (other is Account
7777
&& other.javaClass == javaClass
7878
&& other.owner == owner
79+
&& other.claims == claims
7980
&& other.linearId == linearId)
8081
}
8182

@@ -85,7 +86,7 @@ open class Account(
8586
* @return Returns a hash code for the current object.
8687
*/
8788
override fun hashCode(): Int {
88-
return Objects.hash(owner, linearId, javaClass)
89+
return Objects.hash(owner, claims, linearId, javaClass)
8990
}
9091

9192
/**

onixlabs-corda-identity-framework-workflow/src/main/kotlin/io/onixlabs/corda/identityframework/workflow/accounts/GetAccountStateRefsByClaimFlow.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ import net.corda.core.flows.StartableByRPC
2424
import net.corda.core.flows.StartableByService
2525
import java.sql.ResultSet
2626

27+
/**
28+
* Gets a [List] of [StateRef] for accounts by querying for account claims.
29+
*
30+
* @property property The property of a claim linked to an account.
31+
* @property value The value of a claim linked to an account.
32+
* @property hash The hash of a claim linked to an account.
33+
*/
2734
@StartableByRPC
2835
@StartableByService
2936
class GetAccountStateRefsByClaimFlow(

onixlabs-corda-identity-framework-workflow/src/test/kotlin/io/onixlabs/corda/identityframework/workflow/accounts/VaultServiceAccountClaimQueryTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class VaultServiceAccountClaimQueryTests : FlowTest() {
245245
hash: SecureHash? = null
246246
): List<StateRef> {
247247
return Pipeline
248-
.create(network, Duration.ofHours(1000))
248+
.create(network)
249249
.run(this) { GetAccountStateRefsByClaimFlow(property, value, hash) }
250250
.result
251251
}

0 commit comments

Comments
 (0)