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
682 views

1 answer to this question.

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 21, 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
• 26,740 points
2,361 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,370 points
861 views
0 votes
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,402 views
+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
1,091 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
712 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
759 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP