Transaction: toNumber/fromNumber to set satoshis
This commit is contained in:
parent
ad4bc9324f
commit
6f6d568661
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue