Start writing Loan tests

- Required adding support for counterparty signature to jtx framework:
  arbitrary signature field destination, multiple signer callbacks
This commit is contained in:
Ed Hennis
2025-04-24 21:12:57 -04:00
parent d6353e593f
commit 7823c8b186
11 changed files with 744 additions and 29 deletions

View File

@@ -481,8 +481,11 @@ void
Env::autofill_sig(JTx& jt)
{
auto& jv = jt.jv;
if (jt.signer)
return jt.signer(*this, jt);
if (!jt.signers.empty())
{
for (auto const& signer : jt.signers)
signer(*this, jt);
}
if (!jt.fill_sig)
return;
auto const account = lookup(jv[jss::Account].asString());
@@ -549,8 +552,9 @@ Env::st(JTx const& jt)
{
return sterilize(STTx{std::move(*obj)});
}
catch (std::exception const&)
catch (std::exception const& e)
{
test.log << e.what() << std::endl;
}
return nullptr;
}