Transaction: toNumber/fromNumber to set satoshis

This commit is contained in:
Braydon Fuller 2014-12-13 15:10:51 -05:00
parent ad4bc9324f
commit 6f6d568661

View File

@ -38,7 +38,7 @@ Object.defineProperty(Output.prototype, 'satoshis', {
if (num instanceof BN) { if (num instanceof BN) {
this._satoshis = num; this._satoshis = num;
} else { } else {
this._satoshis = BN(num, 'hex'); this._satoshis = BN().fromNumber(num);
} }
} }
}); });