Search code examples
hyperledgerhyperledger-composer

Why am I not able to deploy hyperledger composer project


I am trying to deploy my first hyperledger composer playground project. I am following this video: https://www.youtube.com/watch?v=JQMh_DQ6wXc

I am stuck at code of JS file.

I am getting following error:

Error: SyntaxError: Failed to parse null: Malformed JSDoc comment: * @param (org.acme.testproject.Hello) hello @transaction

my JS file code:

/**
*New Script File
*/

/**
@param (org.acme.testproject.Hello) hello
@transaction
*/

function hello (hello){
console.log("Hello" + hello.test.message);
}

Any help is appreciated.


Solution

  • You need to replace this sentence @param (org.acme.testproject.Hello) hello with @param {org.acme.testproject.Hello} hello this.