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
96 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 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
• 26,550 points
427 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,170 points
94 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
306 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
31 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
130 views