Fixing lack of description issue

This commit is contained in:
Nelson R. Perez 2017-02-17 19:17:49 -05:00
parent d02f7092a4
commit 639bd65e78

View file

@ -172,6 +172,8 @@ public class Asset extends GrapheneObject {
options.setMaxMarketFee(UnsignedLong.valueOf(optionsJson.get(KEY_MARKET_FEE).getAsString())); options.setMaxMarketFee(UnsignedLong.valueOf(optionsJson.get(KEY_MARKET_FEE).getAsString()));
options.setIssuerPermissions(optionsJson.get(KEY_ISSUER_PERMISSIONS).getAsLong()); options.setIssuerPermissions(optionsJson.get(KEY_ISSUER_PERMISSIONS).getAsLong());
options.setFlags(optionsJson.get(KEY_FLAGS).getAsInt()); options.setFlags(optionsJson.get(KEY_FLAGS).getAsInt());
if(optionsJson.has(KEY_DESCRIPTION))
options.setDescription(optionsJson.get(KEY_DESCRIPTION).getAsString());
//TODO: Deserialize core_exchange_rate field //TODO: Deserialize core_exchange_rate field
Asset asset = new Asset(id, symbol, precision, issuer); Asset asset = new Asset(id, symbol, precision, issuer);