mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 00:15:51 +00:00
UT: Adjust fees for unit tests.
This commit is contained in:
@@ -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))));
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user