Fixed formatting.
This commit is contained in:
parent
041477918c
commit
795abdce1f
1 changed files with 47 additions and 47 deletions
|
@ -291,7 +291,7 @@
|
||||||
* Extract bitcoin addresses from an output script
|
* Extract bitcoin addresses from an output script
|
||||||
*/
|
*/
|
||||||
Script.prototype.extractAddresses = function (addresses)
|
Script.prototype.extractAddresses = function (addresses)
|
||||||
{
|
{
|
||||||
switch (this.getOutType()) {
|
switch (this.getOutType()) {
|
||||||
case 'Address':
|
case 'Address':
|
||||||
addresses.push(new Address(this.chunks[2]));
|
addresses.push(new Address(this.chunks[2]));
|
||||||
|
@ -307,7 +307,7 @@
|
||||||
default:
|
default:
|
||||||
throw new Error("Encountered non-standard scriptPubKey");
|
throw new Error("Encountered non-standard scriptPubKey");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an m-of-n output script
|
* Create an m-of-n output script
|
||||||
|
@ -327,7 +327,7 @@
|
||||||
script.writeOp(OP_CHECKMULTISIG);
|
script.writeOp(OP_CHECKMULTISIG);
|
||||||
|
|
||||||
return script;
|
return script;
|
||||||
}
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a standard payToPubKeyHash input.
|
* Create a standard payToPubKeyHash input.
|
||||||
|
|
Loading…
Add table
Reference in a new issue