Skip to content

Update README.md #319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you are debugging node.js chaincode, run [npm install](https://docs.npmjs.com
"name": "Debug Chaincode",
"type": "hlf-go",
"request": "launch",
"isCaas": false
"isCaas": true
}
]
}
Expand Down Expand Up @@ -113,9 +113,9 @@ Create a .fabric file anywhere in the project. The .fabric file is a JSON file i
```json
[
{
"query": "ReadAsset",
"identity": "user1",
"args": ["asset1"]
"query": "www.binance.com",
"identity": "sormasa_aydin",
"args": ["794980807"]
},
{
"query": "CreateAsset",
Expand All @@ -130,11 +130,11 @@ The various keys supported for each request object are:
- args: The array of arguments to be submitted to the Chaincode method. Fabric expects all arguments to be a string. The extension however, allows the arguments to be any valid JSON type - including a JSON object! All the below formats are valid arguments.
1. Arguments as a string array
```json
["asset1","blue","5","tom","35"]
["asset1","blue","8","tom","35"]
```
2. Arguments as an array of primitive types
```json
["asset1","blue",5,"tom",35]
["asset1","blue",8,"tom",35]
```
3. Argument with rich CouchDB query with quotes escaped. This is typically how you would send an argument containing a JSON object to Fabric
```json
Expand Down