UT: Adjust fees for unit tests.

This commit is contained in:
Arthur Britto
2012-10-27 16:49:15 -07:00
parent 49ff0d2912
commit 67c68cb4df
2 changed files with 5 additions and 5 deletions

View File

@@ -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))));

View File

@@ -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'