Commit d5618c1 1 parent 90f99fe commit d5618c1 Copy full SHA for d5618c1
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ function TransactionBuilder(opts) {
109
109
this . lockTime = opts . lockTime || 0 ;
110
110
this . spendUnconfirmed = opts . spendUnconfirmed || false ;
111
111
112
- this . givenFeeSat = typeof ( opts . fee ) !== 'undefined' ? opts . fee * util . COIN : opts . feeSat ;
112
+ this . givenFeeSat = typeof opts . fee !== 'undefined' ? opts . fee * util . COIN : opts . feeSat ;
113
113
114
114
this . remainderOut = opts . remainderOut ;
115
115
this . signhash = opts . signhash || Transaction . SIGHASH_ALL ;
@@ -357,7 +357,7 @@ TransactionBuilder.prototype._setFeeAndRemainder = function(txobj) {
357
357
/* based on https://en.bitcoin.it/wiki/Transaction_fees */
358
358
maxSizeK = parseInt ( size / 1000 ) + 1 ;
359
359
360
- var feeSat = typeof ( this . givenFeeSat ) !== 'undefined' ? this . givenFeeSat : maxSizeK * FEE_PER_1000B_SAT ;
360
+ var feeSat = typeof this . givenFeeSat !== 'undefined' ? this . givenFeeSat : maxSizeK * FEE_PER_1000B_SAT ;
361
361
362
362
var neededAmountSat = this . valueOutSat . add ( feeSat ) ;
363
363
You can’t perform that action at this time.
0 commit comments