mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-31 02:50:24 +00:00
test: enable unit tests to work with variable reference fee (#5145)
Fix remaining unit tests to be able to process reference fee values other than 10.
This commit is contained in:
@@ -48,6 +48,7 @@ public:
|
||||
// Create a hotwallet
|
||||
Account const hw{"hw"};
|
||||
env.fund(XRP(10000), "hw");
|
||||
env.close();
|
||||
env(trust(hw, USD(10000)));
|
||||
env(trust(hw, JPY(10000)));
|
||||
env(pay(alice, hw, USD(5000)));
|
||||
@@ -56,12 +57,14 @@ public:
|
||||
// Create some clients
|
||||
Account const bob{"bob"};
|
||||
env.fund(XRP(10000), "bob");
|
||||
env.close();
|
||||
env(trust(bob, USD(100)));
|
||||
env(trust(bob, CNY(100)));
|
||||
env(pay(alice, bob, USD(50)));
|
||||
|
||||
Account const charley{"charley"};
|
||||
env.fund(XRP(10000), "charley");
|
||||
env.close();
|
||||
env(trust(charley, CNY(500)));
|
||||
env(trust(charley, JPY(500)));
|
||||
env(pay(alice, charley, CNY(250)));
|
||||
@@ -69,6 +72,7 @@ public:
|
||||
|
||||
Account const dave{"dave"};
|
||||
env.fund(XRP(10000), "dave");
|
||||
env.close();
|
||||
env(trust(dave, CNY(100)));
|
||||
env(pay(alice, dave, CNY(30)));
|
||||
|
||||
@@ -206,6 +210,7 @@ public:
|
||||
// Create a hotwallet
|
||||
Account const hw{"hw"};
|
||||
env.fund(XRP(10000), hw);
|
||||
env.close();
|
||||
env(trust(hw, maxUSD));
|
||||
env.close();
|
||||
env(pay(alice, hw, maxUSD));
|
||||
@@ -213,12 +218,14 @@ public:
|
||||
// Create some clients
|
||||
Account const bob{"bob"};
|
||||
env.fund(XRP(10000), bob);
|
||||
env.close();
|
||||
env(trust(bob, maxUSD));
|
||||
env.close();
|
||||
env(pay(alice, bob, maxUSD));
|
||||
|
||||
Account const charley{"charley"};
|
||||
env.fund(XRP(10000), charley);
|
||||
env.close();
|
||||
env(trust(charley, maxUSD));
|
||||
env.close();
|
||||
env(pay(alice, charley, maxUSD));
|
||||
|
||||
Reference in New Issue
Block a user