|
|
@ -163,7 +163,7 @@ URI.prototype._parseAmount = function(amount) { |
|
|
|
return Unit.fromBTC(amount).toSatoshis(); |
|
|
|
}; |
|
|
|
|
|
|
|
URI.prototype.toJSON = function() { |
|
|
|
URI.prototype.toObject = function toObject() { |
|
|
|
var json = {}; |
|
|
|
for (var i = 0; i < URI.Members.length; i++) { |
|
|
|
var m = URI.Members[i]; |
|
|
@ -179,6 +179,10 @@ URI.prototype.toJSON = function() { |
|
|
|
return json; |
|
|
|
}; |
|
|
|
|
|
|
|
URI.prototype.toJSON = function toJSON() { |
|
|
|
return JSON.stringify(this.toObject()); |
|
|
|
}; |
|
|
|
|
|
|
|
/** |
|
|
|
* Will return a the string representation of the URI |
|
|
|
* |
|
|
|