Skip to content

Instantly share code, notes, and snippets.

@gabrielbiga
Created February 11, 2019 02:14

Revisions

  1. gabrielbiga created this gist Feb 11, 2019.
    13 changes: 13 additions & 0 deletions org.wiboo.wibxp.financial.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    /** 
    * Function to process the transfer transaction. 
    * @param {org.wiboo.wibxp.financial.TransferTransaction} tx The financial transaction 
    * @transaction 
    */ 
    function transferTransaction(tx) 
    {
      // Check if the amount is valid 
      isAmountValid(tx.amount); 

      // … Rest of your code … 
    }