script.toAddress -> script.getToAddress
This commit is contained in:
parent
423124966f
commit
c3880c0cdf
3 changed files with 5 additions and 5 deletions
|
@ -150,7 +150,7 @@ Script.prototype.toScriptHash = function() {
|
|||
return util.sha256ripe160(this.buffer)
|
||||
}
|
||||
|
||||
Script.prototype.toAddress = function() {
|
||||
Script.prototype.getToAddress = function() {
|
||||
var outType = this.getOutType();
|
||||
|
||||
if (outType == 'Pubkey') {
|
||||
|
|
|
@ -415,7 +415,7 @@ var TransactionOut = function (data) {
|
|||
: data.address ? Script.createOutputScript(data.address)
|
||||
: new Script();
|
||||
|
||||
if (this.script.buffer.length > 0) this.address = this.script.toAddress();
|
||||
if (this.script.buffer.length > 0) this.address = this.script.getToAddress();
|
||||
|
||||
this.value =
|
||||
Array.isArray(data.value) ? convert.bytesToNum(data.value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue