From 1d379f341de7418f5b1b7af3cc1acb9864e7b3cc Mon Sep 17 00:00:00 2001 From: rthatcher Date: Thu, 29 Aug 2019 11:56:42 +0100 Subject: [PATCH] [FAB-16474] marbles02 chaincode error Signed-off-by: rthatcher Change-Id: I72d857b2fe905cbb75e33b76b1ac838e83e6f756 --- chaincode/marbles02/javascript/marbles_chaincode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chaincode/marbles02/javascript/marbles_chaincode.js b/chaincode/marbles02/javascript/marbles_chaincode.js index 4a9a3b7ec7..7536178c85 100644 --- a/chaincode/marbles02/javascript/marbles_chaincode.js +++ b/chaincode/marbles02/javascript/marbles_chaincode.js @@ -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