reverse changes in address
This commit is contained in:
parent
be02d41ac2
commit
56e7739a46
|
@ -119,16 +119,14 @@ Address.fromScriptPubKey = function(scriptPubKey, network) {
|
|||
case Script.TX_MULTISIG:
|
||||
version = networks[network].addressVersion;
|
||||
for(var i in payload)
|
||||
if(Buffer.isBuffer(payload[i]))
|
||||
payload[i] = coinUtil.sha256ripe160(payload[i]);
|
||||
payload[i] = coinUtil.sha256ripe160(payload[i]);
|
||||
break;
|
||||
case Script.TX_SCRIPTHASH:
|
||||
version = networks[network].P2SHVersion;
|
||||
break;
|
||||
}
|
||||
for(var i in payload)
|
||||
if(Buffer.isBuffer(payload[i]))
|
||||
ret.push(new Address(version,payload[i]));
|
||||
ret.push(new Address(version,payload[i]));
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue