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
1 changed files with 1 additions and 1 deletions

View File

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