From 6f6d56866161935b7b2182d2351881ff098eee81 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Sat, 13 Dec 2014 15:10:51 -0500 Subject: [PATCH] Transaction: toNumber/fromNumber to set satoshis --- lib/transaction/output.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction/output.js b/lib/transaction/output.js index 95406b3..c7a988d 100644 --- a/lib/transaction/output.js +++ b/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); } } });