Small bugfix
This commit is contained in:
parent
cb70b4425b
commit
44d740f84e
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
|
@ -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".
|
||||
|
|
Loading…
Add table
Reference in a new issue