简体   繁体   English

作曲家无法找到交易功能

[英]Composer unable to find transaction function

My Logic File is: 我的逻辑文件是:

function onIssuingBookFunction(bookIssue){

bookIssue.book_to_issue.issued_by = bookIssue.book_issuer;

return getAssetRegistry('org.acme.sicsrblockchain.Book').then(function (assetRegistry) {

return assetRegistry.update(bookIssue.book_to_issue);

});

}

When running a test, I am getting the following error: 运行测试时,出现以下错误:

Error: Could not find any functions to execute for transaction org.acme.sicsrblockchain.bookIssue#111bfb9f-17e5-4466-a215-50c60e072097 错误: Could not find any functions to execute for transaction org.acme.sicsrblockchain.bookIssue#111bfb9f-17e5-4466-a215-50c60e072097

Please help me regarding the same. 请同样帮助我。 Thanks in advance. 提前致谢。

annotations were missing.. moreover bookIssue.book_to_issue.issued_by = bookIssue.book_issuer; 缺少注释。此外,bookIssue.book_to_issue.issued_by = bookIssue.book_issuer; needed to be changed 需要改变

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM