Fixed bytesToNum bug

This commit is contained in:
vub 2013-10-08 07:44:03 -04:00
parent 8fb725f796
commit 117ecd1e29
2 changed files with 2 additions and 2 deletions

2
bitcoinjs-min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -36,7 +36,7 @@ module.exports = {
*/ */
bytesToNum: function(bytes) { bytesToNum: function(bytes) {
if (bytes.length == 0) return 0; if (bytes.length == 0) return 0;
else return bytes[0] + 256 * bytesToNum(bytes.slice(1)); else return bytes[0] + 256 * module.exports.bytesToNum(bytes.slice(1));
}, },
/** /**
* Turn an integer into a "var_int". * Turn an integer into a "var_int".