Update comment

fixes #979
This commit is contained in:
Dabura667 2018-01-10 23:54:38 +09:00 committed by GitHub
parent e0f24fdd46
commit 64d9f72f77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}