Skip to content

Commit

Permalink
Fix wrong url in deployment example
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Avery committed May 22, 2017
1 parent d2e4381 commit 834cefc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ In order to deploy chaincode through the REST interface, you will need to have t
"params": {
"type": 1,
"chaincodeID": {
"path": "https://github.com/<YOUR_GITHUB_ID_HERE>/learn-chaincode/finished"
"path": "http://gopkg.in/<YOUR_GITHUB_ID_HERE>/learn-chaincode.v2/start"
},
"ctorMsg": {
"function": "init",
Expand All @@ -368,7 +368,9 @@ In order to deploy chaincode through the REST interface, you will need to have t
}
```

- 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.
- 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.

- 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.

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

Expand Down
Binary file modified imgs/deploy_example.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 834cefc

Please sign in to comment.