mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 20:25:48 +00:00
Remove "type" from PathSet JSON format
This commit is contained in:
@@ -34,7 +34,7 @@ const Hop = makeClass({
|
||||
},
|
||||
toJSON() {
|
||||
const type = this.type();
|
||||
const ret = {type};
|
||||
const ret = {};
|
||||
(type & TYPE_ACCOUNT) && (ret.account = this.account.toJSON());
|
||||
(type & TYPE_ISSUER) && (ret.issuer = this.issuer.toJSON());
|
||||
(type & TYPE_CURRENCY) && (ret.currency = this.currency.toJSON());
|
||||
|
||||
Reference in New Issue
Block a user