mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
corrected indentation of contract in the chancode-javasript of asset-trnsfer-basic
Signed-off-by: fraVlaca <ocsenarf@outlook.com>
This commit is contained in:
parent
1007204f9d
commit
8ae4abb924
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class AssetTransfer extends Contract {
|
||||||
// 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'
|
||||||
// when retrieving data, in any lang, the order of data will be the same and consequently also the corresonding hash
|
// when retrieving data, in any lang, the order of data will be the same and consequently also the corresonding hash
|
||||||
await ctx.stub.putState(asset.ID, Buffer.from(stringify(sortKeysRecursive(asset))));
|
await ctx.stub.putState(asset.ID, Buffer.from(stringify(sortKeysRecursive(asset))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateAsset issues a new asset to the world state with given details.
|
// CreateAsset issues a new asset to the world state with given details.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue