rippled
Loading...
Searching...
No Matches
ledgerStateFixes.cpp
1#include <test/jtx/ledgerStateFix.h>
2
3#include <xrpld/app/tx/detail/LedgerStateFix.h>
4
5#include <xrpl/protocol/TxFlags.h>
6#include <xrpl/protocol/jss.h>
7
8namespace ripple {
9namespace test {
10namespace jtx {
11
12namespace ledgerStateFix {
13
14// Fix NFTokenPage links on owner's account. acct pays fee.
16nftPageLinks(jtx::Account const& acct, jtx::Account const& owner)
17{
18 Json::Value jv;
19 jv[sfAccount.jsonName] = acct.human();
20 jv[sfLedgerFixType.jsonName] = LedgerStateFix::nfTokenPageLink;
21 jv[sfOwner.jsonName] = owner.human();
22 jv[sfTransactionType.jsonName] = jss::LedgerStateFix;
23 return jv;
24}
25
26} // namespace ledgerStateFix
27
28} // namespace jtx
29} // namespace test
30} // namespace ripple
Represents a JSON value.
Definition json_value.h:130
Immutable cryptographic account descriptor.
Definition Account.h:20
std::string const & human() const
Returns the human readable public key.
Definition Account.h:99
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:6