Unit test for enforcing no ripple

This commit is contained in:
seelabs
2015-11-04 17:48:46 -05:00
parent 9b8133f65f
commit 7d2809eb27
3 changed files with 80 additions and 3 deletions

View File

@@ -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;
}