Change how mock notary identity is extracted (#2075)

Change how mock notary identity is extracted, to match reversion in commit 3bb018a5
This commit is contained in:
Ross Nicoll 2017-11-17 15:31:59 +00:00 committed by GitHub
parent 128d5cad0a
commit 857e395439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ class MockNetwork(defaultParameters: MockNetworkParameters = MockNetworkParamete
* @see defaultNotaryNode
*/
val defaultNotaryIdentityAndCert: PartyAndCertificate get() {
return defaultNotaryNode.info.legalIdentitiesAndCerts.singleOrNull() ?: throw IllegalStateException("Default notary has multiple identities")
return defaultNotaryNode.info.legalIdentitiesAndCerts[1] // TODO Resolve once network parameters is merged back in
}
/**