You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed some commands in the docs, it may be annoying to people
if they cut and paste it and it won't work.
Change-Id: Icf21f50a4f1dd2377206ba3527f4a9a35f9b83a9
Signed-off-by: Yacov Manevich <[email protected]>
Copy file name to clipboardexpand all lines: docs/Setup/Chaincode-setup.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -275,7 +275,7 @@ POST localhost:7050/registrar
275
275
276
276
First, send a chaincode deploy transaction, only once, to the validating peer. The CLI connects to the validating peer using the properties defined in the core.yaml file. **Note:** The deploy transaction typically requires a `path` parameter to locate, build, and deploy the chaincode. However, because these instructions are specific to local development mode and the chaincode is deployed manually, the `name` parameter is used instead.
Alternatively, you can run the chaincode deploy transaction through the REST API.
@@ -351,7 +351,7 @@ The deploy transaction initializes the chaincode by executing a target initializ
351
351
Run the chaincode invoking transaction on the CLI as many times as desired. The `-n` argument should match the value provided in the chaincode window (started in Vagrant terminal 2):
Alternatively, run the chaincode invoking transaction through the REST API.
@@ -392,7 +392,7 @@ POST <host:port>/chaincode
392
392
393
393
**Note:** When security is enabled, modify the CLI command and REST API payload to pass the `enrollmentID` of a logged in user. To log in a registered user through the CLI or the REST API, follow the instructions in the [note on security functionality](#note-on-security-functionality). On the CLI, the `enrollmentID` is passed with the `-u` parameter; in the REST API, the `enrollmentID` is passed with the `secureContext` element. If you are enabling security and privacy on the peer process with environment variables, it is important to include these environment variables in the command when executing all subsequent peer operations (e.g. deploy, invoke, or query).
@@ -428,7 +428,7 @@ The invoking transaction runs the specified chaincode function name "invoke" wit
428
428
Run a query on the chaincode to retrieve the desired values. The `-n` argument should match the value provided in the chaincode window (started in Vagrant terminal 2):
**Note:** When security is enabled, modify the CLI command and REST API payload to pass the `enrollmentID` of a logged in user. To log in a registered user through the CLI or the REST API, follow the instructions in the [note on security functionality](#note-on-security-functionality). On the CLI, the `enrollmentID` is passed with the `-u` parameter; in the REST API, the `enrollmentID` is passed with the `secureContext` element. If you are enabling security and privacy on the peer process with environment variables, it is important to include these environment variables in the command when executing all subsequent peer operations (e.g. deploy, invoke, or query).
0 commit comments