Add missing suspendable (#3711)

Add missing suspendable to flow
This commit is contained in:
Emanuel Russo 2018-07-27 18:23:35 +02:00 committed by Joel Dudley
parent 666b1d0faf
commit f20e0e7cf1

View File

@ -11,6 +11,7 @@ import net.corda.core.serialization.CordaSerializable
import net.corda.core.transactions.LedgerTransaction
import net.corda.core.transactions.TransactionBuilder
import net.corda.core.utilities.ProgressTracker
import co.paralleluniverse.fibers.Suspendable
@StartableByRPC
@ -23,7 +24,7 @@ class TestNotaryFlow : FlowLogic<String>() {
override val progressTracker: ProgressTracker = ProgressTracker(ISSUING, ISSUED, DESTROYING, FINALIZED)
@Suspendable
override fun call(): String {
val issueBuilder = TransactionBuilder()
val notary = serviceHub.networkMapCache.notaryIdentities.first()
@ -62,4 +63,4 @@ object NotaryTestCommand : CommandData
class NotaryTestContract : Contract {
override fun verify(tx: LedgerTransaction) {
}
}
}