mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 09:35:10 +00:00
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:
parent
ff8a3c8d50
commit
c6956e5057
1 changed files with 1 additions and 1 deletions
|
|
@ -386,7 +386,7 @@ class Chaincode extends Contract {
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
for (let asset in assets) {
|
for (const asset of assets) {
|
||||||
await this.CreateAsset(
|
await this.CreateAsset(
|
||||||
ctx,
|
ctx,
|
||||||
asset.assetID,
|
asset.assetID,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue