Skip to content

Commit

Permalink
cherry pick test network doc chaincode deployment fix
Browse files Browse the repository at this point in the history
Signed-off-by: Nikhil Gupta <ngupta@symbridge.com>
  • Loading branch information
nikhil550 authored and denyeart committed Jan 21, 2021
1 parent 10c7839 commit a861c00
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions docs/source/test_network.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,14 @@ chaincode is ready to be used.
After you have used the `network.sh` to create a channel, you can start a
chaincode on the channel using the following command:
```
./network.sh deployCC
./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go
```
The `deployCC` subcommand will install the **asset-transfer (basic)** chaincode on
``peer0.org1.example.com`` and ``peer0.org2.example.com`` and then deploy
the chaincode on the channel specified using the channel flag (or `mychannel`
if no channel is specified). If you are deploying a chaincode for the first
time, the script will install the chaincode dependencies. By default, The script
installs the Go version of the asset-transfer (basic) chaincode. However, you can use the
language flag, `-l`, to install the typescript or javascript versions of the chaincode.
time, the script will install the chaincode dependencies. You can use the
language flag, `-l`, to install the Go, typescript or javascript versions of the chaincode.
You can find the asset-transfer (basic) chaincode in the `asset-transfer-basic` folder of the `fabric-samples`
directory. This folder contains sample chaincode that are provided as examples and
used by tutorials to highlight Fabric features.
Expand Down Expand Up @@ -293,7 +292,7 @@ export CORE_PEER_ADDRESS=localhost:7051
The `CORE_PEER_TLS_ROOTCERT_FILE` and `CORE_PEER_MSPCONFIGPATH` environment
variables point to the Org1 crypto material in the `organizations` folder.

If you used `./network.sh deployCC` to install and start the asset-transfer (basic) chaincode, you can invoke the `InitLedger` function of the (Go) chaincode to put an initial list of assets on the ledger (if using typescript or javascript `./network.sh deployCC -ccl javascript` for example, you will invoke the `InitLedger` function of the respective chaincodes).
If you used `./network.sh deployCC -ccl go` to install and start the asset-transfer (basic) chaincode, you can invoke the `InitLedger` function of the (Go) chaincode to put an initial list of assets on the ledger (if using typescript or javascript `./network.sh deployCC -ccl javascript` for example, you will invoke the `InitLedger` function of the respective chaincodes).

Run the following command to initialize the ledger with assets:
```
Expand Down Expand Up @@ -488,12 +487,12 @@ organizations/peerOrganizations/org1.example.com/users/Admin@org1.example.com/
├── IssuerPublicKey
├── IssuerRevocationPublicKey
├── cacerts
└── localhost-7054-ca-org1.pem
   └── localhost-7054-ca-org1.pem
├── config.yaml
├── keystore
└── 58e81e6f1ee8930df46841bf88c22a08ae53c1332319854608539ee78ed2fd65_sk
   └── 58e81e6f1ee8930df46841bf88c22a08ae53c1332319854608539ee78ed2fd65_sk
├── signcerts
└── cert.pem
   └── cert.pem
└── user
```
You can find the certificate of the admin user in the `signcerts` folder and the
Expand Down Expand Up @@ -661,4 +660,4 @@ channel on [Hyperledger Rocket Chat](https://chat.hyperledger.org/home) or on
[StackOverflow](https://stackoverflow.com/questions/tagged/hyperledger-fabric).

<!--- Licensed under Creative Commons Attribution 4.0 International License
https://creativecommons.org/licenses/by/4.0/ -->
https://creativecommons.org/licenses/by/4.0/ -->

0 comments on commit a861c00

Please sign in to comment.