Hyperledger Composer error in transaction

0 votes
I am working on Hyperledger composer and I am getting an error in .js file as

/**

* @param {org.acme.model.Demo} Demo

* @transaction

*/

function Demo (Demo) {

console.log("Hello");

}

The error is Could not find any function
Jul 20, 2018 in Blockchain by Mrunal
• 680 points
47 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Check that you have declare the function in model file.If you are having space between param end and the function then Hyperledger composer will throw an error

/**
* @param {org.acme.model.Demo} Demo
* @transaction
*/  
function Demo (Demo) {
console.log("Hello");
}

 

Hope this helps you.

answered Jul 20, 2018 by shweta
• 440 points

Related Questions In Blockchain

0 votes
1 answer

How to solve EACCES:permission denied error in Hyperledger Composer?

It seems like there is no required ...READ MORE

answered Jul 11, 2018 in Blockchain by digger
• 27,620 points
218 views
0 votes
1 answer

How to solve "error trying install composer runtime" in Hyperledger composer?

I think the docker-compose tool is not ...READ MORE

answered Jul 17, 2018 in Blockchain by slayer
• 29,040 points
51 views
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer

I am unable to change port of composer-rest-server. Please help!

Use full format for running a business ...READ MORE

answered Mar 27, 2018 in Blockchain by Christine
• 15,790 points
207 views
+1 vote
1 answer
0 votes
1 answer

Error in playground while committing transaction on the ledger

1. Is this transaction is trying to ...READ MORE

answered Jul 27, 2018 in Blockchain by shweta
• 440 points
15 views
0 votes
1 answer

Hyperledger Composer Error trying to instantiate composer runtime

If this message occurs in instantiating composer ...READ MORE

answered Jul 31, 2018 in Blockchain by shweta
• 440 points
75 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.