From 63bb5a6daca2d9b86bf88e971a06ef9fc8e5aca6 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Fri, 31 Aug 2018 19:07:05 -0500 Subject: [PATCH] Sending id as a number inside the parameters array of the 'set_subscribe_callback' instead of a string --- .../cy/agorise/graphenej/api/calls/SetSubscribeCallback.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/api/calls/SetSubscribeCallback.java b/graphenej/src/main/java/cy/agorise/graphenej/api/calls/SetSubscribeCallback.java index 66472d7..d0797a2 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/api/calls/SetSubscribeCallback.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/api/calls/SetSubscribeCallback.java @@ -19,7 +19,7 @@ public class SetSubscribeCallback implements ApiCallable { @Override public ApiCall toApiCall(int apiId, long sequenceId) { ArrayList subscriptionParams = new ArrayList<>(); - subscriptionParams.add(String.format("%d", sequenceId)); + subscriptionParams.add(new Long(sequenceId)); subscriptionParams.add(clearFilter); return new ApiCall(apiId, RPC.CALL_SET_SUBSCRIBE_CALLBACK, subscriptionParams, RPC.VERSION, sequenceId); }