Allow zero value for ReserveCount, FeeAmount, MaxFee

This commit is contained in:
tequ
2026-02-22 00:01:56 +09:00
parent 293394fbc6
commit 178bb8f7e9
4 changed files with 72 additions and 15 deletions

View File

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