fabric-samples/asset-transfer-basic/chaincode-javascript/lib
Dave Kelsey 9f07960dae
Correct Javascript Chaincode (#445)
- In CreateAsset, await was never called on putState causing issues
especially with tools such as caliper and is not correct practice.
Unfortunately all the other examples use `return` which works but is
actually not the idiomatic way of handling promises, so here await is
chosen rather than return

Signed-off-by: D <d_kelsey@uk.ibm.com>

Co-authored-by: D <d_kelsey@uk.ibm.com>
2021-05-11 10:22:25 +01:00
..
assetTransfer.js Correct Javascript Chaincode (#445) 2021-05-11 10:22:25 +01:00