-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To load the name of the functions which is present in chaincode #25
Comments
Hi @ashish9308 - this demo uses the official NodeSDK ("hfc") produced by the Hyperledger Fabric project itself. hfc does not have built in support for "parsing" the chaincode source and looking for functions. Chaincode investigator used https://github.com/IBM-Blockchain/ibm-blockchain-js under the covers which basically "parsed" the Go source file(s) of the chaincode and tried to find the functions |
Hello @mastersing24 thanks for your quick responce.If i want to add the same parsing feature here in this code then it will work? |
@ashish9308 - you could certainly try to copy and modify https://github.com/IBM-Blockchain/ibm-blockchain-js/blob/master/index.js#L146 in order to accomplish this. |
Is there any way so that i can see the list of functions which is present in the chaincode by using this sdk. Earlier by using chaincode investigator i was able to see the functions.
This kind of output i want to see.
Example:
[ibc-js] Found cc invoke function: issueCommercialPaper
[ibc-js] Found cc invoke function: transferPaper
[ibc-js] Found cc invoke function: createAccounts
[ibc-js] Found cc invoke function: createAccount
[ibc-js] Found cc invoke function: init
The text was updated successfully, but these errors were encountered: