diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2502342 --- /dev/null +++ b/.gitignore @@ -0,0 +1,50 @@ +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# WebStorm settings +.idea +.idea/* + +# SSL certs +*.pem + +# BASH dumps +*.stackdump + +# backups +*.*~ + +# Build folders +build +dist + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + +# Debug log from npm +npm-debug.log +npm-debug.log.*dashpay/client/bundle.js +dashpay/client/node_modules +/client/dashpay-spa/node_modules/ diff --git a/bitcore-lib-dash.js b/bitcore-lib-dash.js index 22df08d..4fad918 100644 --- a/bitcore-lib-dash.js +++ b/bitcore-lib-dash.js @@ -3531,7 +3531,7 @@ inherits(Proposal,GovObject); Proposal.prototype.dataHex = function() { var _govObj = { end_epoch: this.end_epoch, - name: this._toASCII(this.name), + name: this.name, payment_address: this.payment_address, payment_amount: this.payment_amount, start_epoch: this.start_epoch, @@ -3539,7 +3539,12 @@ Proposal.prototype.dataHex = function() { 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() { diff --git a/index.html b/index.html index 1dce9b1..01aaecf 100644 --- a/index.html +++ b/index.html @@ -2,44 +2,31 @@
-