Fixed address object creation bug
This commit is contained in:
parent
2bfa783be2
commit
b41a4ecb91
3 changed files with 4 additions and 4 deletions
src
|
@ -312,7 +312,7 @@ Script.createOutputScript = function (address)
|
|||
{
|
||||
var script = new Script();
|
||||
// Standard pay-to-pubkey-hash
|
||||
if (address.version == 0) {
|
||||
if (!address.version) {
|
||||
script.writeOp(Opcode.map.OP_DUP);
|
||||
script.writeOp(Opcode.map.OP_HASH160);
|
||||
script.writeBytes(address.hash);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue