fix Transaction#create tests

This commit is contained in:
Manuel Araoz 2014-03-19 13:16:01 -03:00
parent 6ac48b2809
commit cfe899ee76
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
@ -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});
}
};