Open sidazhang opened 10 years ago
When we use new TransactionOut(), it only accepts value as a string like this: 20000 but not as a number. https://github.com/cryptocoinjs/btc-transaction/blob/master/lib/transaction.js#L436
new TransactionOut()
20000
However, Transaction.addOutput() does accept as a number as value. We should keep them consistent and add similar functionality to new TrasactionOut() https://github.com/cryptocoinjs/btc-transaction/blob/master/lib/transaction.js#L128
Transaction.addOutput()
new TrasactionOut()
When we use
new TransactionOut()
, it only accepts value as a string like this:20000
but not as a number. https://github.com/cryptocoinjs/btc-transaction/blob/master/lib/transaction.js#L436However,
Transaction.addOutput()
does accept as a number as value. We should keep them consistent and add similar functionality tonew TrasactionOut()
https://github.com/cryptocoinjs/btc-transaction/blob/master/lib/transaction.js#L128