Update asset_transfer_ledger_chaincode.js

the `let` def wont get the object of asset, and generate an error when init the ledger

Signed-off-by: James <james.gong927@gmail.com>
This commit is contained in:
JGONGSQ 2020-11-10 00:10:05 +11:00 committed by James
parent ff8a3c8d50
commit 49cef540de

View file

@ -386,7 +386,7 @@ class Chaincode extends Contract {
},
];
for (let asset in assets) {
for (const asset of assets) {
await this.CreateAsset(
ctx,
asset.assetID,