Fixing uses of the UserAccount.toJsonString() and replacing them by the correct UserAccount.getObjectId() instead
This commit is contained in:
parent
83ffdd70f7
commit
184bbfafa3
3 changed files with 4 additions and 4 deletions
|
@ -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())
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue