xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
test
jtx
impl
invoice_id.cpp
1
#include <test/jtx/invoice_id.h>
2
3
#include <test/jtx/Env.h>
4
#include <test/jtx/JTx.h>
5
6
#include <xrpl/basics/strHex.h>
7
8
namespace
xrpl::test::jtx
{
9
10
void
11
InvoiceId::operator()
(
Env
&,
JTx
& jt)
const
12
{
13
if
(!
hash_
.isZero())
14
jt[
"InvoiceID"
] =
strHex
(
hash_
);
15
}
16
17
}
// namespace xrpl::test::jtx
xrpl::test::jtx::Env
A transaction testing environment.
Definition
Env.h:161
xrpl::test::jtx
Definition
Oracle_test.cpp:34
xrpl::strHex
std::string strHex(FwdIt begin, FwdIt end)
Definition
strHex.h:13
xrpl::test::jtx::InvoiceId::hash_
UInt256 hash_
Definition
invoice_id.h:13
xrpl::test::jtx::InvoiceId::operator()
void operator()(Env &, JTx &jt) const
Definition
invoice_id.cpp:11
xrpl::test::jtx::JTx
Execution context for applying a JSON transaction.
Definition
JTx.h:27
Generated by
1.17.0