Fixing lack of description issue
This commit is contained in:
parent
d02f7092a4
commit
639bd65e78
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue