Skip to content

Commit

Permalink
Fix Doc: Type of args in invokeChaincode() is string[] (#311)
Browse files Browse the repository at this point in the history
stub.invokeChaincode() receives a parameter `args` which is
a string array having arguments to pass to the called chaicode.
However, the current document explains the `args` is byte[][].
This PR fixes the document issue above.

Signed-off-by: Yuki Kondo <yuki.kondo.ob@hitachi.com>
  • Loading branch information
yukiknd authored Jan 27, 2022
1 parent c7fc3cc commit a53121f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/fabric-shim/lib/stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ class ChaincodeStub {
* If `channel` is empty, the caller's channel is assumed.
* @async
* @param {string} chaincodeName Name of the chaincode to call
* @param {byte[][]} args List of arguments to pass to the called chaincode
* @param {string[]} args List of arguments to pass to the called chaincode
* @param {string} channel Name of the channel where the target chaincode is active
* @returns {Promise} Promise for a {@link Response} object returned by the called chaincode
*/
Expand Down

0 comments on commit a53121f

Please sign in to comment.