SendTx example says hash.reverse has no method 'reverse'
Hey all, the validation example example works fine, but the SendTx example bombs out. Anyone know what's going on? I've attached the error.
Thanks for any help that people can offer.
node examples/SendTx.js
connecting to 127.0.0.1:18333
connected to 127.0.0.1:18333
/home/client/js/payment-app/vendor/bitcore/examples/SendTx.js:29
hash.reverse();
^
TypeError: Object �_5��ĕ�ܫ�����*ʹ�v�M��j*}�e has no method 'reverse'
at createTx (/home/client/js/payment-app/vendor/bitcore/examples/SendTx.js:29:8)
at PeerManager.<anonymous> (/home/client/js/payment-app/vendor/bitcore/examples/SendTx.js:55:17)
at PeerManager.EventEmitter.emit (events.js:95:17)
at PeerManager.handleReady (/home/client/js/payment-app/vendor/bitcore/PeerManager.js:126:10)
at Connection.EventEmitter.emit (events.js:117:20)
at Connection.handleMessage (/home/client/js/payment-app/vendor/bitcore/Connection.js:160:10)
at Connection.processData (/home/client/js/payment-app/vendor/bitcore/Connection.js:400:12)
at Connection.processData (/home/client/js/payment-app/vendor/bitcore/Connection.js:404:10)
at Connection.handleData (/home/client/js/payment-app/vendor/bitcore/Connection.js:328:10)
at Socket.EventEmitter.emit (events.js:117:20)
Fixed when #91 gets merged.
Edit: _Examples_ are fixed in #91, you'll have to copy/paste them again.
Hello, how did you make the address validation example work fine? Did you do any extra configuration? I've tried several times... Thanks!
I just did an npm install in the main directory and then ran it as is.
What error are you getting?
https://github.com/bitpay/bitcore/issues/92 <- exactly this issue. I'm using Ubuntu Server 12.10 and Node v0.9.9, wonder if that's the problem.
I can run your code just fine. It outputs that the address is valid. Perhaps update node? I am using v0.10.26.
Done with my tests. That was it. Ubuntu gives old packages for an LTS distribution. Heh! Thanks.
Just tried @SomeoneWeird 's solution. Appears to be working -- thanks.