mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Unit test for enforcing no ripple
This commit is contained in:
@@ -29,7 +29,8 @@ namespace jtx {
|
||||
|
||||
Json::Value
|
||||
trust (Account const& account,
|
||||
STAmount const& amount)
|
||||
STAmount const& amount,
|
||||
std::uint32_t flags)
|
||||
{
|
||||
if (isXRP(amount))
|
||||
Throw<std::runtime_error> (
|
||||
@@ -38,7 +39,7 @@ trust (Account const& account,
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::LimitAmount] = amount.getJson(0);
|
||||
jv[jss::TransactionType] = "TrustSet";
|
||||
jv[jss::Flags] = 0; // tfClearNoRipple;
|
||||
jv[jss::Flags] = flags;
|
||||
return jv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user