mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 17:15:10 +00:00
fix chaincode breakage in asset-transfer-basic (#694)
only broken in main branch, not in release-2.2 Signed-off-by: D <d_kelsey@uk.ibm.com> Co-authored-by: D <d_kelsey@uk.ibm.com>
This commit is contained in:
parent
e1fb6269dc
commit
57919f528d
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ class AssetTransfer extends Contract {
|
||||||
const oldOwner = asset.Owner;
|
const oldOwner = asset.Owner;
|
||||||
asset.Owner = newOwner;
|
asset.Owner = newOwner;
|
||||||
// we insert data in alphabetic order using 'json-stringify-deterministic' and 'sort-keys-recursive'
|
// we insert data in alphabetic order using 'json-stringify-deterministic' and 'sort-keys-recursive'
|
||||||
ctx.stub.putState(id, Buffer.from(stringify(sortKeysRecursive(asset))));
|
await ctx.stub.putState(id, Buffer.from(stringify(sortKeysRecursive(asset))));
|
||||||
return oldOwner;
|
return oldOwner;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue