mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 14:50:54 +00:00
Allow zero value for ReserveCount, FeeAmount, MaxFee
This commit is contained in:
@@ -56,6 +56,17 @@ set_reserve(jtx::Account const& account, uint32_t flags, uint32_t reserveCount)
|
||||
return jv;
|
||||
}
|
||||
|
||||
Json::Value
|
||||
set_max_fee(jtx::Account const& account, uint32_t flags, STAmount maxFee)
|
||||
{
|
||||
Json::Value jv;
|
||||
jv[jss::TransactionType] = jss::SponsorshipSet;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[sfFlags.jsonName] = flags;
|
||||
jv[sfMaxFee.jsonName] = maxFee.getJson(JsonOptions::none);
|
||||
return jv;
|
||||
}
|
||||
|
||||
Json::Value
|
||||
del(jtx::Account const& account)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user