mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
JS: Adjust to new address encoding.
This commit is contained in:
committed by
Stefan Thomas
parent
926d6bb03e
commit
c29c903c07
@@ -58,7 +58,7 @@ UInt160.prototype.parse_json = function (j) {
|
|||||||
else if (40 === j.length) {
|
else if (40 === j.length) {
|
||||||
this.value = utils.hexToString(j);
|
this.value = utils.hexToString(j);
|
||||||
}
|
}
|
||||||
else if (j[0] === "i") {
|
else if (j[0] === "r") {
|
||||||
// XXX Do more checking convert to string.
|
// XXX Do more checking convert to string.
|
||||||
|
|
||||||
this.value = j;
|
this.value = j;
|
||||||
@@ -399,8 +399,8 @@ exports.Currency = Currency;
|
|||||||
exports.UInt160 = UInt160;
|
exports.UInt160 = UInt160;
|
||||||
|
|
||||||
exports.consts = {
|
exports.consts = {
|
||||||
'address_xns' : "iiiiiiiiiiiiiiiiiiiiihoLvTp",
|
'address_xns' : "rrrrrrrrrrrrrrrrrrrrrhoLvTp",
|
||||||
'address_one' : "iiiiiiiiiiiiiiiiiiiiBZbvjr",
|
'address_one' : "rrrrrrrrrrrrrrrrrrrrBZbvji",
|
||||||
'currency_xns' : 0,
|
'currency_xns' : 0,
|
||||||
'currency_one' : 1,
|
'currency_one' : 1,
|
||||||
'uint160_xns' : utils.hexToString("0000000000000000000000000000000000000000"),
|
'uint160_xns' : utils.hexToString("0000000000000000000000000000000000000000"),
|
||||||
|
|||||||
Reference in New Issue
Block a user