From c956ebadc19546b1a149fb8418a3856aafed7ac3 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Mon, 4 Jun 2018 22:39:44 -0500 Subject: [PATCH] Fixed problem with the new GetAccounts API wrapper --- .../java/cy/agorise/graphenej/api/calls/GetAccounts.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/api/calls/GetAccounts.java b/graphenej/src/main/java/cy/agorise/graphenej/api/calls/GetAccounts.java index ea6a6dc..e2c036a 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/api/calls/GetAccounts.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/api/calls/GetAccounts.java @@ -28,10 +28,12 @@ public class GetAccounts implements ApiCallable { @Override public ApiCall toApiCall(int apiId, long sequenceId) { - ArrayList params = new ArrayList(); + ArrayList params = new ArrayList<>(); + ArrayList accountIds = new ArrayList<>(); for(UserAccount userAccount : mUserAccounts){ - params.add(userAccount.getObjectId()); + accountIds.add(userAccount.getObjectId()); } + params.add(accountIds); return new ApiCall(apiId, RPC.CALL_GET_ACCOUNTS, params, RPC.VERSION, sequenceId); } }