Small bugfix

This commit is contained in:
vub 2013-10-08 05:35:19 -04:00
parent cb70b4425b
commit 44d740f84e
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

@ -27,7 +27,7 @@ module.exports = {
*/
numToBytes: function(num,bytes) {
if (bytes == 0 || (bytes === null && num === 0)) return [];
else return [num % 256].concat(bw.numToBytes(Math.floor(num / 256),bytes-1));
else return [num % 256].concat(module.exports.numToBytes(Math.floor(num / 256),bytes-1));
},
/**
* Turn an integer into a "var_int".