Files
rippled/src/test/jtx/impl/invoice_id.cpp

18 lines
300 B
C++

#include <test/jtx/invoice_id.h>
#include <test/jtx/Env.h>
#include <test/jtx/JTx.h>
#include <xrpl/basics/strHex.h>
namespace xrpl::test::jtx {
void
InvoiceId::operator()(Env&, JTx& jt) const
{
if (!hash_.isZero())
jt["InvoiceID"] = strHex(hash_);
}
} // namespace xrpl::test::jtx