mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add JsonOptions enum class to contain options passed to getJSON methods
This commit is contained in:
@@ -99,7 +99,8 @@ class Discrepancy_test : public beast::unit_test::suite
|
||||
|
||||
Json::Value jrq2;
|
||||
jrq2[jss::binary] = false;
|
||||
jrq2[jss::transaction] = env.tx()->getJson(0)[jss::hash];
|
||||
jrq2[jss::transaction] =
|
||||
env.tx()->getJson(JsonOptions::none)[jss::hash];
|
||||
jrq2[jss::id] = 3;
|
||||
auto jrr = env.rpc ("json", "tx", to_string(jrq2))[jss::result];
|
||||
uint64_t fee { jrr[jss::Fee].asUInt() };
|
||||
|
||||
Reference in New Issue
Block a user