我的逻辑文件是:
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);
});
}
运行测试时,我收到以下错误:
错误:Could not find any functions to execute for transaction org.acme.sicsrblockchain.bookIssue#111bfb9f-17e5-4466-a215-50c60e072097
请相同帮助我。提前谢谢。
答案 0 :(得分:1)
缺少注释..而且bookIssue.book_to_issue.issued_by = bookIssue.book_issuer;需要改变