diff --git a/js/amount.js b/js/amount.js index d2da47a0..a9e6e839 100644 --- a/js/amount.js +++ b/js/amount.js @@ -436,7 +436,7 @@ Amount.prototype.parse_native = function(j) { var m; if ('string' === typeof j) - m = j.match(/^(-?)(\d+)(\.\d{1,6})?$/); + m = j.match(/^(-?)(\d+)(\.\d{0,6})?$/); if (m) { if (undefined === m[3]) { @@ -445,7 +445,7 @@ Amount.prototype.parse_native = function(j) { this.value = new BigInteger(m[2]); } else { - // Decimal notation + // Float notation var int_part = (new BigInteger(m[2])).multiply(exports.consts.bi_xns_unit); var fraction_part = (new BigInteger(m[3])).multiply(new BigInteger(String(Math.pow(10, 1+exports.consts.xns_precision-m[3].length)))); diff --git a/js/remote.js b/js/remote.js index 9fa97054..8313088f 100644 --- a/js/remote.js +++ b/js/remote.js @@ -216,10 +216,10 @@ Remote.flags = { // XXX This needs to be determined from the network. Remote.fees = { - 'default' : Amount.from_json("100"), - 'account_create' : Amount.from_json("1000"), + 'default' : Amount.from_json("10"), + 'account_create' : Amount.from_json("1000000000"), 'nickname_create' : Amount.from_json("1000"), - 'offer' : Amount.from_json("100"), + 'offer' : Amount.from_json("10"), }; // Set the emited state: 'online' or 'offline'