rippled
Loading...
Searching...
No Matches
ledgerStateFixes.cpp
1#include <test/jtx/ledgerStateFix.h>
2
3#include <xrpl/protocol/TxFlags.h>
4#include <xrpl/protocol/jss.h>
5#include <xrpl/tx/transactors/system/LedgerStateFix.h>
6
7namespace xrpl {
8namespace test {
9namespace jtx {
10
11namespace ledgerStateFix {
12
13// Fix NFTokenPage links on owner's account. acct pays fee.
15nftPageLinks(jtx::Account const& acct, jtx::Account const& owner)
16{
17 Json::Value jv;
18 jv[sfAccount.jsonName] = acct.human();
19 jv[sfLedgerFixType.jsonName] = LedgerStateFix::nfTokenPageLink;
20 jv[sfOwner.jsonName] = owner.human();
21 jv[sfTransactionType.jsonName] = jss::LedgerStateFix;
22 return jv;
23}
24
25} // namespace ledgerStateFix
26
27} // namespace jtx
28} // namespace test
29} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
Immutable cryptographic account descriptor.
Definition Account.h:19
std::string const & human() const
Returns the human readable public key.
Definition Account.h:94
Json::Value nftPageLinks(jtx::Account const &acct, jtx::Account const &owner)
Repair the links in an NFToken directory.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5