multisig addresses where being displayed incorrectly on the verify page when you decoded a transaction. This fixes that.

This commit is contained in:
OutCast3k 2014-12-14 22:33:57 +00:00
parent a248b84b72
commit e0873c764d

View file

@ -580,10 +580,10 @@ $(document).ready(function() {
if(o.script.chunks.length==5){ if(o.script.chunks.length==5){
addr = coinjs.scripthash2address(Crypto.util.bytesToHex(o.script.chunks[2])); addr = coinjs.scripthash2address(Crypto.util.bytesToHex(o.script.chunks[2]));
} else { } else {
var priv = coinjs.priv; var pub = coinjs.pub;
coinjs.priv = 0x05; coinjs.pub = coinjs.multisig;
addr = coinjs.scripthash2address(Crypto.util.bytesToHex(o.script.chunks[1])); addr = coinjs.scripthash2address(Crypto.util.bytesToHex(o.script.chunks[1]));
coinjs.priv = priv; coinjs.pub = pub;
} }
h += '<tr>'; h += '<tr>';