TxBuilder: more explicit comment for address type parameter
This commit is contained in:
parent
56160622ca
commit
ae0001ce37
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ TransactionBuilder.prototype.addOutput = function (scriptPubKey, value) {
|
||||||
return (input.hashType & 0x1f) === Transaction.SIGHASH_SINGLE
|
return (input.hashType & 0x1f) === Transaction.SIGHASH_SINGLE
|
||||||
}), 'No, this would invalidate signatures')
|
}), 'No, this would invalidate signatures')
|
||||||
|
|
||||||
// Attempt to get a valid address if it's a base58 address string
|
// Attempt to get a script if it's a base58 address string
|
||||||
if (typeof scriptPubKey === 'string') {
|
if (typeof scriptPubKey === 'string') {
|
||||||
scriptPubKey = Address.toOutputScript(scriptPubKey, this.network)
|
scriptPubKey = Address.toOutputScript(scriptPubKey, this.network)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue