diff --git a/bitcore-lib-dash.js b/bitcore-lib-dash.js index dc136aa..22df08d 100644 --- a/bitcore-lib-dash.js +++ b/bitcore-lib-dash.js @@ -3531,9 +3531,9 @@ inherits(Proposal,GovObject); Proposal.prototype.dataHex = function() { var _govObj = { end_epoch: this.end_epoch, + name: this._toASCII(this.name), payment_address: this.payment_address, payment_amount: this.payment_amount, - proposal_name: this._toASCII(this.proposal_name), start_epoch: this.start_epoch, type: this.type, url: this.url @@ -3544,9 +3544,9 @@ Proposal.prototype.dataHex = function() { Proposal.prototype._newGovObject = function() { this.end_epoch = ""; + this.name = ""; this.payment_address = ""; this.payment_amount = ""; - this.proposal_name = ""; this.start_epoch = ""; this.type = ""; this.url = ""; diff --git a/index.html b/index.html index 90a2616..6813b65 100644 --- a/index.html +++ b/index.html @@ -35,9 +35,8 @@ gov.end_epoch = document.getElementById('end_epoch').value || null; gov.payment_address = document.getElementById('payment_address').value; - //gov.payment_amount = document.getElementById('payment_amount').value; gov.payment_amount = parseFloat(document.getElementById('payment_amount').value); - gov.proposal_name = document.getElementById('proposal_name').value; + gov.name = document.getElementById('name').value; gov.start_epoch = document.getElementById('start_epoch').value || null; gov.type = parseInt(document.getElementById('type').value); gov.url = document.getElementById('url').value; @@ -94,8 +93,8 @@