Skip to content

Commit 84aefc3

Browse files
authored
Merge pull request bitcoinjs#980 from bitcoinjs/fix-comment-bech32
Update comment
2 parents e0f24fd + 64d9f72 commit 84aefc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transaction_builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ TransactionBuilder.prototype.addOutput = function (scriptPubKey, value) {
604604
throw new Error('No, this would invalidate signatures')
605605
}
606606

607-
// Attempt to get a script if it's a base58 address string
607+
// Attempt to get a script if it's a base58 or bech32 address string
608608
if (typeof scriptPubKey === 'string') {
609609
scriptPubKey = baddress.toOutputScript(scriptPubKey, this.network)
610610
}

0 commit comments

Comments
 (0)