Skip to content

Commit

Permalink
fix Transaction#create tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maraoz committed Mar 19, 2014
1 parent 6ac48b2 commit cfe899e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var formatBuffer = exports.formatBuffer = function (buffer, maxLen) {

var valueToBigInt = exports.valueToBigInt = function (valueBuffer) {
if (Buffer.isBuffer(valueBuffer)) {
return bignum.fromBuffer(valueBuffer, {endian: 'little', size: 'auto'});
return bignum.fromBuffer(valueBuffer, {endian: 'little', size: 8});
} else {
return valueBuffer;
}
Expand All @@ -108,7 +108,7 @@ var bigIntToValue = exports.bigIntToValue = function (valueBigInt) {
if (Buffer.isBuffer(valueBigInt)) {
return valueBigInt;
} else {
return valueBigInt.toBuffer({endian: 'little', size: 'auto'});
return valueBigInt.toBuffer({endian: 'little', size: 8});
}
};

Expand Down

0 comments on commit cfe899e

Please sign in to comment.