Update asset_transfer_ledger_chaincode.js (#368)

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-11 01:22:05 +11:00 committed by GitHub
parent ff8a3c8d50
commit c6956e5057
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,