Skip to content

Commit

Permalink
[FAB-16474] marbles02 chaincode error
Browse files Browse the repository at this point in the history
Signed-off-by: rthatcher <robert.thatcher@uk.ibm.com>
Change-Id: I72d857b2fe905cbb75e33b76b1ac838e83e6f756
  • Loading branch information
rthatcher committed Aug 29, 2019
1 parent 18712ca commit 1d379f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chaincode/marbles02/javascript/marbles_chaincode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d379f3

Please sign in to comment.