From e78e2570df472cc5f2ce1bdb5393350c8c88af7f Mon Sep 17 00:00:00 2001 From: OutCast3k Date: Fri, 2 Jan 2015 13:52:01 +0000 Subject: [PATCH] remove unneeded value o.valid from addressDecode() --- js/coin.js | 4 ---- js/coinbin.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/js/coin.js b/js/coin.js index cdd75ab..ba3527f 100644 --- a/js/coin.js +++ b/js/coin.js @@ -188,7 +188,6 @@ var o = {}; o.bytes = front.slice(1); - o.valid = true; o.version = front[0]; if(o.version==coinjs.pub){ // standard address @@ -205,7 +204,6 @@ o.option = front[1]; if (o.option != 0) { - o.valid = false; alert("Stealth Address option other than 0 is currently not supported!"); return false; }; @@ -214,7 +212,6 @@ o.n = front[35]; if (o.n > 1) { - o.valid = false; alert("Stealth Multisig is currently not supported!"); return false; }; @@ -224,7 +221,6 @@ o.prefixlen = front[70]; if (o.prefixlen > 0) { - o.valid = false; alert("Stealth Address Prefixes are currently not supported!"); return false; }; diff --git a/js/coinbin.js b/js/coinbin.js index 0508df2..c77bee4 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -368,7 +368,7 @@ $(document).ready(function() { var ad = coinjs.addressDecode(a) if(((a!="") && (ad.version === 0 || ad.version === 5)) && $(".amount",o).val()!=""){ // address tx.addoutput(a, $(".amount",o).val()); - } else if ((((a!="") && ad.version === 42) && ad.valid==true) && $(".amount",o).val()!=""){ // stealth address + } else if (((a!="") && ad.version === 42) && $(".amount",o).val()!=""){ // stealth address tx.addstealth(ad, $(".amount",o).val()); } else if (((($("#opReturn").is(":checked")) && a.match(/^[a-f0-9]+$/ig)) && a.length<80) && (a.length%2)==0) { // data tx.adddata(a);