Skip to content

Instantly share code, notes, and snippets.

@brenden-t-r
Created August 17, 2019 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brenden-t-r/7d5b69e97bd92682f7603acf30df2dce to your computer and use it in GitHub Desktop.
Save brenden-t-r/7d5b69e97bd92682f7603acf30df2dce to your computer and use it in GitHub Desktop.
fun verifyCustomPaymentRailSettlement(obligation: Obligation<TokenType>, payment: CustomPayment<TokenType>): VerifyResult {
val oracleService = serviceHub.cordaService(MyPaymentRailService::class.java)
val result = oracleService.hasPaymentSettled(payment, obligation)
// .. check result status, etc..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment