Rename NFT offer index to "nft_offer_index" (#377)

Fixes #380
This commit is contained in:
Shawn
2022-11-01 13:27:58 -04:00
committed by GitHub
parent ea2837749a
commit 9b74b3f898

View File

@@ -16,7 +16,7 @@ appendNftOfferJson(ripple::SLE const& offer, boost::json::array& offers)
offers.push_back(boost::json::object_kind);
boost::json::object& obj(offers.back().as_object());
obj[JS(index)] = ripple::to_string(offer.key());
obj[JS(nft_offer_index)] = ripple::to_string(offer.key());
obj[JS(flags)] = (offer)[ripple::sfFlags];
obj[JS(owner)] = ripple::toBase58(offer.getAccountID(ripple::sfOwner));