From 184bbfafa3becfc8f2527a1a81f28df1e83b49c0 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Tue, 4 Jul 2017 16:45:30 -0500 Subject: [PATCH] Fixing uses of the UserAccount.toJsonString() and replacing them by the correct UserAccount.getObjectId() instead --- .../graphenej/operations/AccountUpdateOperation.java | 2 +- .../graphenej/operations/LimitOrderCreateOperation.java | 2 +- .../graphenej/operations/TransferOperation.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/AccountUpdateOperation.java b/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/AccountUpdateOperation.java index 5798f2e..66a7310 100644 --- a/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/AccountUpdateOperation.java +++ b/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/AccountUpdateOperation.java @@ -77,7 +77,7 @@ public class AccountUpdateOperation extends BaseOperation { JsonObject accountUpdate = new JsonObject(); accountUpdate.add(KEY_FEE, fee.toJsonObject()); - accountUpdate.addProperty(KEY_ACCOUNT, account.toJsonString()); + accountUpdate.addProperty(KEY_ACCOUNT, account.getObjectId()); if(owner.isSet()) accountUpdate.add(KEY_OWNER, owner.toJsonObject()); if(active.isSet()) diff --git a/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/LimitOrderCreateOperation.java b/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/LimitOrderCreateOperation.java index 195682a..df3a5f7 100644 --- a/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/LimitOrderCreateOperation.java +++ b/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/LimitOrderCreateOperation.java @@ -79,7 +79,7 @@ public class LimitOrderCreateOperation extends BaseOperation { JsonObject jsonObject = new JsonObject(); if(fee != null) jsonObject.add(KEY_FEE, fee.toJsonObject()); - jsonObject.addProperty(KEY_SELLER, seller.toJsonString()); + jsonObject.addProperty(KEY_SELLER, seller.getObjectId()); jsonObject.add(KEY_AMOUNT_TO_SELL, amountToSell.toJsonObject()); jsonObject.add(KEY_MIN_TO_RECEIVE, minToReceive.toJsonObject()); diff --git a/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/TransferOperation.java b/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/TransferOperation.java index 8eee847..85bf2d4 100644 --- a/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/TransferOperation.java +++ b/graphenej/src/main/java/de/bitsharesmunich/graphenej/operations/TransferOperation.java @@ -118,8 +118,8 @@ public class TransferOperation extends BaseOperation { JsonObject jsonObject = new JsonObject(); if(fee != null) jsonObject.add(KEY_FEE, fee.toJsonObject()); - jsonObject.addProperty(KEY_FROM, from.toJsonString()); - jsonObject.addProperty(KEY_TO, to.toJsonString()); + jsonObject.addProperty(KEY_FROM, from.getObjectId()); + jsonObject.addProperty(KEY_TO, to.getObjectId()); jsonObject.add(KEY_AMOUNT, amount.toJsonObject()); jsonObject.add(KEY_MEMO, memo.toJsonObject()); jsonObject.add(KEY_EXTENSIONS, new JsonArray());