Skip to content

Commit 969943f

Browse files
Merge branch 'main' into release
2 parents fcc293a + 5cc8d5b commit 969943f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=onixlabs-corda-identity-framework
22
group=io.onixlabs
3-
version=3.1.0
3+
version=3.2.0
44
onixlabs.development.jarsign.keystore=../lib/onixlabs.development.pkcs12
55
onixlabs.development.jarsign.password=5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ import java.util.*
3030
/**
3131
* Represents a party that resolves back to an account.
3232
*
33-
* @property party The underlying party that owns the account.
33+
* @property owner The underlying party that owns the account.
3434
* @property accountLinearId The linear ID of the account associated with this party.
3535
* @property accountType The type of the account associated with this party.
3636
*/
3737
class AccountParty internal constructor(
38-
private val party: AbstractParty,
38+
val owner: AbstractParty,
3939
val accountLinearId: UniqueIdentifier,
4040
val accountType: Class<out Account>
41-
) : AbstractParty(party.owningKey) {
41+
) : AbstractParty(owner.owningKey) {
4242

4343
/**
4444
* Gets an account resolver to resolve this [AccountParty] back to the associated [Account].
@@ -70,7 +70,7 @@ class AccountParty internal constructor(
7070
* @return Returns the name of the account owner; or null if the account owner is unknown.
7171
*/
7272
override fun nameOrNull(): CordaX500Name? {
73-
return party.nameOrNull()
73+
return owner.nameOrNull()
7474
}
7575

7676
/**
@@ -80,7 +80,7 @@ class AccountParty internal constructor(
8080
* @return Returns a party and reference of this object instance.
8181
*/
8282
override fun ref(bytes: OpaqueBytes): PartyAndReference {
83-
return party.ref(bytes)
83+
return owner.ref(bytes)
8484
}
8585

8686
/**
@@ -91,7 +91,7 @@ class AccountParty internal constructor(
9191
*/
9292
override fun equals(other: Any?): Boolean {
9393
return if (other !is AccountParty) super.equals(other)
94-
else other.party == party && other.accountLinearId == accountLinearId && other.accountType == accountType
94+
else other.owner == owner && other.accountLinearId == accountLinearId && other.accountType == accountType
9595
}
9696

9797
/**
@@ -100,7 +100,7 @@ class AccountParty internal constructor(
100100
* @return Returns a hash code for the current object.
101101
*/
102102
override fun hashCode(): Int {
103-
return Objects.hash(party, accountLinearId, accountType)
103+
return Objects.hash(owner, accountLinearId, accountType)
104104
}
105105

106106
/**
@@ -109,7 +109,7 @@ class AccountParty internal constructor(
109109
* @return Returns a string that represents the current object.
110110
*/
111111
override fun toString(): String {
112-
return "$accountLinearId@$party"
112+
return "$accountLinearId@$owner"
113113
}
114114

115115
/**

0 commit comments

Comments
 (0)