Browse Source

Fixed bytesToNum bug

hk-custom-address
vub 11 years ago
parent
commit
117ecd1e29
  1. 2
      bitcoinjs-min.js
  2. 2
      src/util.js

2
bitcoinjs-min.js

File diff suppressed because one or more lines are too long

2
src/util.js

@ -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…
Cancel
Save