From 1f60b72c7b345f1e3e121209df87d0d78fd143d6 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Thu, 8 Dec 2016 17:25:13 -0500 Subject: [PATCH] Switching to standard name --- src/main/java/com/luminiasoft/bitshares/RPC.java | 2 +- .../java/com/luminiasoft/bitshares/ws/LookupAccounts.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/luminiasoft/bitshares/RPC.java b/src/main/java/com/luminiasoft/bitshares/RPC.java index 1cfad0a..f7db64b 100644 --- a/src/main/java/com/luminiasoft/bitshares/RPC.java +++ b/src/main/java/com/luminiasoft/bitshares/RPC.java @@ -15,5 +15,5 @@ public class RPC { public static final String CALL_GET_ACCOUNTS = "get_accounts"; public static final String CALL_GET_KEY_REFERENCES = "get_key_references"; public static final String CALL_GET_RELATIVE_ACCOUNT_HISTORY = "get_relative_account_history"; - public static final String LOOKUP_ACCOUNTS = "lookup_accounts"; + public static final String CALL_LOOKUP_ACCOUNTS = "lookup_accounts"; } diff --git a/src/main/java/com/luminiasoft/bitshares/ws/LookupAccounts.java b/src/main/java/com/luminiasoft/bitshares/ws/LookupAccounts.java index 106a78c..e6e44d7 100644 --- a/src/main/java/com/luminiasoft/bitshares/ws/LookupAccounts.java +++ b/src/main/java/com/luminiasoft/bitshares/ws/LookupAccounts.java @@ -1,8 +1,6 @@ package com.luminiasoft.bitshares.ws; -import com.google.gson.Gson; import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; import com.google.gson.reflect.TypeToken; import com.luminiasoft.bitshares.RPC; import com.luminiasoft.bitshares.UserAccount; @@ -48,7 +46,7 @@ public class LookupAccounts extends WebSocketAdapter { ArrayList accountParams = new ArrayList<>(); accountParams.add(this.accountName); accountParams.add(this.maxAccounts); - ApiCall getAccountByName = new ApiCall(0, RPC.LOOKUP_ACCOUNTS, accountParams, RPC.VERSION, 1); + ApiCall getAccountByName = new ApiCall(0, RPC.CALL_LOOKUP_ACCOUNTS, accountParams, RPC.VERSION, 1); websocket.sendText(getAccountByName.toJsonString()); }