Skip to content

Commit 834cefc

Browse files
author
Dale Avery
committed
Fix wrong url in deployment example
1 parent d2e4381 commit 834cefc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ In order to deploy chaincode through the REST interface, you will need to have t
354354
"params": {
355355
"type": 1,
356356
"chaincodeID": {
357-
"path": "https://github.com/<YOUR_GITHUB_ID_HERE>/learn-chaincode/finished"
357+
"path": "http://gopkg.in/<YOUR_GITHUB_ID_HERE>/learn-chaincode.v2/start"
358358
},
359359
"ctorMsg": {
360360
"function": "init",
@@ -368,7 +368,9 @@ In order to deploy chaincode through the REST interface, you will need to have t
368368
}
369369
```
370370

371-
- The `"path":` is the path to your fork of the repository on Github, going one more directory down into `/finished`, where your `chaincode_finished.go` file lives.
371+
- The `"path":` is the path to your fork of the repository on Github, going one more directory down into `/start`, where your `chaincode_start.go` file lives. The `v.2` portion of the URL indicates that the peer should checkout the code from the `v2.0` branch of your fork.
372+
373+
- You may be wondering why we didn't use a URL like `http://github.com/<YOUR_GITHUB_ID_HERE>/learn-chaincode/start`. Well, this URL would work, but this would cause the peer to deploy the chaincode from the `master` branch of your repository, as opposed to the `v2.0` or `v1.0` branches. If you've been following this guide to the letter, then you have been committing changes and pushing to these branches in your fork, not the `master` branch.
372374

373375
- Send the request. If everything goes smoothly, you will see a response like the one below
374376

imgs/deploy_example.PNG

13.1 KB
Loading

0 commit comments

Comments
 (0)