Fixing uses of the UserAccount.toJsonString() and replacing them by the correct UserAccount.getObjectId() instead

master
Nelson R. Perez 2017-07-04 16:45:30 -05:00
parent 83ffdd70f7
commit 184bbfafa3
3 changed files with 4 additions and 4 deletions

View File

@ -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())

View File

@ -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());

View File

@ -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());