Fixed deserialization of "seller" field of limit_order_create_operation

This commit is contained in:
Kostya Shpachenko 2017-12-18 15:40:38 +02:00
parent d0629eab85
commit a2886ea0a5

View file

@ -208,7 +208,7 @@ public class LimitOrderCreateOperation extends BaseOperation {
JsonObject jsonObject = json.getAsJsonObject(); JsonObject jsonObject = json.getAsJsonObject();
AssetAmount fee = context.deserialize(jsonObject.get(KEY_FEE), AssetAmount.class); AssetAmount fee = context.deserialize(jsonObject.get(KEY_FEE), AssetAmount.class);
UserAccount seller = context.deserialize(jsonObject.get(KEY_SELLER), UserAccount.class); UserAccount seller = new UserAccount(jsonObject.get(KEY_SELLER).getAsString());
AssetAmount amountToSell = context.deserialize(jsonObject.get(KEY_AMOUNT_TO_SELL), AssetAmount.class); AssetAmount amountToSell = context.deserialize(jsonObject.get(KEY_AMOUNT_TO_SELL), AssetAmount.class);
AssetAmount minToReceive = context.deserialize(jsonObject.get(KEY_MIN_TO_RECEIVE), AssetAmount.class); AssetAmount minToReceive = context.deserialize(jsonObject.get(KEY_MIN_TO_RECEIVE), AssetAmount.class);
String expiration = jsonObject.get(KEY_EXPIRATION).getAsString(); String expiration = jsonObject.get(KEY_EXPIRATION).getAsString();