Skip to content

Instantly share code, notes, and snippets.

@apemon
Created December 23, 2018 17:46
Show Gist options
  • Select an option

  • Save apemon/368fd4b1d093187750d3667ed3d2ebff to your computer and use it in GitHub Desktop.

Select an option

Save apemon/368fd4b1d093187750d3667ed3d2ebff to your computer and use it in GitHub Desktop.
@InitiatingFlow
@StartableByRPC
class ProxyNameAddFlow(val proxy: ProxyName): FlowLogic<Unit>() {
@Suspendable
override fun call() {
val databaseService = serviceHub.cordaService(ProxyNameDatabaseService::class.java)
databaseService.insertProxyName(proxy)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment