From 90543550d22beef23fbeccbd0c5e101c21ff6e68 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Fri, 12 Oct 2012 15:10:09 -0700 Subject: [PATCH] JS: Adjust to new address encoding. --- js/amount.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/amount.js b/js/amount.js index 62f52a3d16..51e18a5630 100644 --- a/js/amount.js +++ b/js/amount.js @@ -58,7 +58,7 @@ UInt160.prototype.parse_json = function (j) { else if (40 === j.length) { this.value = utils.hexToString(j); } - else if (j[0] === "i") { + else if (j[0] === "r") { // XXX Do more checking convert to string. this.value = j; @@ -399,8 +399,8 @@ exports.Currency = Currency; exports.UInt160 = UInt160; exports.consts = { - 'address_xns' : "iiiiiiiiiiiiiiiiiiiiihoLvTp", - 'address_one' : "iiiiiiiiiiiiiiiiiiiiBZbvjr", + 'address_xns' : "rrrrrrrrrrrrrrrrrrrrrhoLvTp", + 'address_one' : "rrrrrrrrrrrrrrrrrrrrBZbvji", 'currency_xns' : 0, 'currency_one' : 1, 'uint160_xns' : utils.hexToString("0000000000000000000000000000000000000000"),