Describe the bug
For some reason the extention is appending a function onto the end of the list of my arguments when calling a chaincode.
To Reproduce
Steps to reproduce the behavior:
I tried my own .fabric files and just copying the example and they both caused the issue with it claimg there was a '\n' in the argument
[
{
"query": "ReadAsset",
"args": ["asset1"]
}
]
Expected behavior
A clear and concise description of what you expected to happen.
Environment:
- OS: Windows 11
- Docker version v24.0.7
- Extension version 1.0.0
Screenshots
If applicable, add screenshots to help explain your problem.
Logger Output
2024-01-03T06:47:34.109Z [Error] Syntax error in query/invoke request. Chaincode arguments supplied: ['"asset1"','"function (old_index, new_index) {
// Shortcut helper to move item to end of array
if (-1 === new_index) {
new_index = this.length - 1;
}
if (new_index >= this.length) {
var k = new_index - this.length;
while (k-- + 1) {
this.push(undefined);
}
}
this.splice(new_index, 0, this.splice(old_index, 1)[0]);
return this; // for testing purposes
}"'].
Describe the bug
For some reason the extention is appending a function onto the end of the list of my arguments when calling a chaincode.
To Reproduce
Steps to reproduce the behavior:
I tried my own .fabric files and just copying the example and they both caused the issue with it claimg there was a '\n' in the argument
[ { "query": "ReadAsset", "args": ["asset1"] } ]Expected behavior
A clear and concise description of what you expected to happen.
Environment:
Screenshots
If applicable, add screenshots to help explain your problem.
Logger Output