Fixed deserialization of "seller" field of limit_order_create_operation

develop
Kostya Shpachenko 2017-12-18 15:40:38 +02:00
parent d0629eab85
commit a2886ea0a5
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ public class LimitOrderCreateOperation extends BaseOperation {
JsonObject jsonObject = json.getAsJsonObject();
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 minToReceive = context.deserialize(jsonObject.get(KEY_MIN_TO_RECEIVE), AssetAmount.class);
String expiration = jsonObject.get(KEY_EXPIRATION).getAsString();