Missing await in asset-transfer-basic chaincode (#693)

Missing an `await` on the asset-transfer-basic javascript chaincode.

This has been fixed in the main branch but needs to be fixed in the
release-2.2 branch

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

Co-authored-by: D <d_kelsey@uk.ibm.com>
This commit is contained in:
Dave Kelsey 2022-03-30 16:27:04 +01:00 committed by GitHub
parent 921d6ff15c
commit 7d4bcf29f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ class AssetTransfer extends Contract {
Owner: owner,
AppraisedValue: appraisedValue,
};
ctx.stub.putState(id, Buffer.from(JSON.stringify(asset)));
await ctx.stub.putState(id, Buffer.from(JSON.stringify(asset)));
return JSON.stringify(asset);
}