[FAB-16474] marbles02 chaincode error

Signed-off-by: rthatcher <robert.thatcher@uk.ibm.com>
Change-Id: I72d857b2fe905cbb75e33b76b1ac838e83e6f756
This commit is contained in:
rthatcher 2019-08-29 11:56:42 +01:00
parent 18712ca8f6
commit 1d379f341d

View file

@ -462,10 +462,10 @@ let Chaincode = class {
}
const queryString = args[0];
const pageSize = parseInt(args[2], 10);
const bookmark = args[3];
const pageSize = parseInt(args[1], 10);
const bookmark = args[2];
const { iterator, metadata } = await stub.GetQueryResultWithPagination(queryString, pageSize, bookmark);
const { iterator, metadata } = await stub.getQueryResultWithPagination(queryString, pageSize, bookmark);
const getAllResults = thisClass['getAllResults'];
const results = await getAllResults(iterator, false);
// use RecordsCount and Bookmark to keep consistency with the go sample