mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
The build is only testing the Go chaincode for the asset-transfer-private-data sample. The behavior of the TypeScript chaincode implementation is not consistent with the Go and Java versions, which prevents it from working correctly. This change fixes the TypeScript chaincode implementation for the asset-transfer-private-data sample so that it works correctly. Additionally, some JSON property names are explicitly set in the Go client application sample, which prevented it from working with the Java and TypeScript chaincode implementations. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com> |
||
|---|---|---|
| .. | ||
| docker | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| collections_config.json | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| npm-shrinkwrap.json | ||
| package.json | ||
| Readme.md | ||
| tsconfig.json | ||
Usage
This chaincode written for Hyperledger Fabric private data tutorial(https://hyperledger-fabric.readthedocs.io/en/latest/private_data_tutorial.html).
Deploy chaincode with:
cd fabric-samples/asset-transfer-private-data/chaincode-typescript/npm installnpm run buildcd fabric-samples/test-network/./network.sh deployCC -ccn private -ccp ../asset-transfer-private-data/chaincode-typescript/ -ccl typescript -ccep "OR('Org1MSP.peer','Org2MSP.peer')" -cccg ../asset-transfer-private-data/chaincode-typescript/collections_config.json