Created
February 11, 2019 02:14
-
-
Save gabrielbiga/cffcc2ffc8e6787fcfd7575139f7f15a to your computer and use it in GitHub Desktop.
The org.wiboo.wibxp.financial file - Reusing functions in Hyperledger Composer chaincode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 … | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment