mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
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:
parent
921d6ff15c
commit
7d4bcf29f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue