Browse Source

Transaction: toNumber/fromNumber to set satoshis

patch-2
Braydon Fuller 10 years ago
parent
commit
6f6d568661
  1. 2
      lib/transaction/output.js

2
lib/transaction/output.js

@ -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…
Cancel
Save