Fixed bytesToNum bug
This commit is contained in:
parent
8fb725f796
commit
117ecd1e29
2 changed files with 2 additions and 2 deletions
2
bitcoinjs-min.js
vendored
2
bitcoinjs-min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -36,7 +36,7 @@ module.exports = {
|
|||
*/
|
||||
bytesToNum: function(bytes) {
|
||||
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".
|
||||
|
|
Loading…
Reference in a new issue