bugfix: proposal name double-quote serialization

This commit is contained in:
Nathan Marley 2016-09-20 15:00:07 -05:00
parent fac825e8cf
commit 95fe8fb14f

View file

@ -3531,7 +3531,7 @@ inherits(Proposal,GovObject);
Proposal.prototype.dataHex = function() { Proposal.prototype.dataHex = function() {
var _govObj = { var _govObj = {
end_epoch: this.end_epoch, end_epoch: this.end_epoch,
name: this._toASCII(this.name), name: this.name,
payment_address: this.payment_address, payment_address: this.payment_address,
payment_amount: this.payment_amount, payment_amount: this.payment_amount,
start_epoch: this.start_epoch, start_epoch: this.start_epoch,
@ -3539,7 +3539,12 @@ Proposal.prototype.dataHex = function() {
url: this.url url: this.url
}; };
return '[["'+this._govOp+'", '+JSON.stringify(_govObj)+']]';
// screwy data shims 'til we can fix this on dashd
var inner = [this._govOp, _govObj];
var outer = [ inner ];
return JSON.stringify(outer);
}; };
Proposal.prototype._newGovObject = function() { Proposal.prototype._newGovObject = function() {