Transaction: remove unnecessary clone
This commit is contained in:
parent
323f0612d0
commit
005ca31fb3
1 changed files with 2 additions and 2 deletions
|
@ -409,7 +409,7 @@ TransactionIn.prototype.clone = function () {
|
||||||
hash: this.outpoint.hash,
|
hash: this.outpoint.hash,
|
||||||
index: this.outpoint.index
|
index: this.outpoint.index
|
||||||
},
|
},
|
||||||
script: this.script.clone(),
|
script: this.script,
|
||||||
sequence: this.sequence
|
sequence: this.sequence
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -424,7 +424,7 @@ function TransactionOut(data) {
|
||||||
|
|
||||||
TransactionOut.prototype.clone = function() {
|
TransactionOut.prototype.clone = function() {
|
||||||
return new TransactionOut({
|
return new TransactionOut({
|
||||||
script: this.script.clone(),
|
script: this.script,
|
||||||
value: this.value,
|
value: this.value,
|
||||||
address: this.address
|
address: this.address
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue