Browse Source
Merge pull request #980 from bitcoinjs/fix-comment-bech32
Update comment
hk-custom-address
Dabura667
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/transaction_builder.js
|
|
@ -604,7 +604,7 @@ TransactionBuilder.prototype.addOutput = function (scriptPubKey, value) { |
|
|
|
throw new Error('No, this would invalidate signatures') |
|
|
|
} |
|
|
|
|
|
|
|
// Attempt to get a script if it's a base58 address string
|
|
|
|
// Attempt to get a script if it's a base58 or bech32 address string
|
|
|
|
if (typeof scriptPubKey === 'string') { |
|
|
|
scriptPubKey = baddress.toOutputScript(scriptPubKey, this.network) |
|
|
|
} |
|
|
|