diff --git a/core/src/main/kotlin/core/testing/TestUtils.kt b/core/src/main/kotlin/core/testing/TestUtils.kt index 065501ea21..ea76bdc1f4 100644 --- a/core/src/main/kotlin/core/testing/TestUtils.kt +++ b/core/src/main/kotlin/core/testing/TestUtils.kt @@ -146,7 +146,7 @@ open class TransactionForTest : AbstractTransactionForTest() { protected fun runCommandsAndVerify(time: Instant) { val cmds = commandsToAuthenticatedObjects() - val tx = TransactionForVerification(inStates, outStates.map { it.state }, emptyList(), cmds, SecureHash.randomSHA256()) + val tx = TransactionForVerification(inStates, outStates.map { it.state }, emptyList(), cmds, SecureHash.Companion.randomSHA256()) tx.verify() } diff --git a/node/src/test/kotlin/node/services/NotaryServiceTests.kt b/node/src/test/kotlin/node/services/NotaryServiceTests.kt index 88a1052192..68a84f1cb3 100644 --- a/node/src/test/kotlin/node/services/NotaryServiceTests.kt +++ b/node/src/test/kotlin/node/services/NotaryServiceTests.kt @@ -37,7 +37,7 @@ class NotaryServiceTests { tx.setTime(Instant.now(), DUMMY_NOTARY, 30.seconds) var wtx = tx.toWireTransaction() - val protocol = NotaryProtocol(wtx, NotaryProtocol.tracker()) + val protocol = NotaryProtocol(wtx, NotaryProtocol.Companion.tracker()) val future = clientNode.smm.add(NotaryProtocol.TOPIC, protocol) net.runNetwork() @@ -49,7 +49,7 @@ class NotaryServiceTests { val inputState = issueState(clientNode) val wtx = TransactionBuilder().withItems(inputState).toWireTransaction() - val protocol = NotaryProtocol(wtx, NotaryProtocol.tracker()) + val protocol = NotaryProtocol(wtx, NotaryProtocol.Companion.tracker()) val future = clientNode.smm.add(NotaryProtocol.TOPIC, protocol) net.runNetwork() @@ -63,7 +63,7 @@ class NotaryServiceTests { tx.setTime(Instant.now().plusSeconds(3600), DUMMY_NOTARY, 30.seconds) var wtx = tx.toWireTransaction() - val protocol = NotaryProtocol(wtx, NotaryProtocol.tracker()) + val protocol = NotaryProtocol(wtx, NotaryProtocol.Companion.tracker()) val future = clientNode.smm.add(NotaryProtocol.TOPIC, protocol) net.runNetwork()