TxBuilder: build convenience functions don't need extra line breaks
This commit is contained in:
parent
ba97b5ee34
commit
c29b233744
1 changed files with 2 additions and 8 deletions
|
@ -162,14 +162,8 @@ TransactionBuilder.prototype.addOutput = function(scriptPubKey, value) {
|
||||||
return this.tx.addOutput(scriptPubKey, value)
|
return this.tx.addOutput(scriptPubKey, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionBuilder.prototype.build = function() {
|
TransactionBuilder.prototype.build = function() { return this.__build(false) }
|
||||||
return this.__build(false)
|
TransactionBuilder.prototype.buildIncomplete = function() { return this.__build(true) }
|
||||||
}
|
|
||||||
|
|
||||||
TransactionBuilder.prototype.buildIncomplete = function() {
|
|
||||||
return this.__build(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
TransactionBuilder.prototype.__build = function(allowIncomplete) {
|
TransactionBuilder.prototype.__build = function(allowIncomplete) {
|
||||||
if (!allowIncomplete) {
|
if (!allowIncomplete) {
|
||||||
assert(this.tx.ins.length > 0, 'Transaction has no inputs')
|
assert(this.tx.ins.length > 0, 'Transaction has no inputs')
|
||||||
|
|
Loading…
Reference in a new issue