mirror of
https://github.com/seigler/govobject-proposal
synced 2025-07-27 06:46:10 +00:00
bugfix: proposal name double-quote serialization
This commit is contained in:
parent
fac825e8cf
commit
95fe8fb14f
1 changed files with 7 additions and 2 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue