From d1528021e2494d101d21ccb2821e6218cefd3968 Mon Sep 17 00:00:00 2001 From: tequ Date: Mon, 18 Aug 2025 16:17:49 +0900 Subject: [PATCH] Add `ltORACLE` for Remarks target (#562) --- src/test/app/SetRemarks_test.cpp | 15 +++++++++++++++ src/xrpld/app/tx/detail/SetRemarks.cpp | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/test/app/SetRemarks_test.cpp b/src/test/app/SetRemarks_test.cpp index cf2dda6c7..58a601c6e 100644 --- a/src/test/app/SetRemarks_test.cpp +++ b/src/test/app/SetRemarks_test.cpp @@ -18,11 +18,13 @@ //============================================================================== #include +#include #include #include #include #include #include +#include #include namespace ripple { @@ -497,6 +499,19 @@ struct SetRemarks_test : public beast::unit_test::suite env.close(); validateRemarks(*env.current(), id, marks); } + // ltORACLE + { + auto const id = keylet::oracle(alice, 1).key; + oracle::CreateArg arg = { + .owner = alice, + .documentID = 1, + .series = {{"XAH", "USD", 740, 1}}}; + env.close(std::chrono::seconds(300)); + oracle::Oracle oracle(env, arg); + env(remarks::setRemarks(alice, id, marks), fee(XRP(1))); + env.close(); + validateRemarks(*env.current(), id, marks); + } // ltDEPOSIT_PREAUTH { env(fset(bob, asfDepositAuth)); diff --git a/src/xrpld/app/tx/detail/SetRemarks.cpp b/src/xrpld/app/tx/detail/SetRemarks.cpp index 4d6cb21e5..9111f5f59 100644 --- a/src/xrpld/app/tx/detail/SetRemarks.cpp +++ b/src/xrpld/app/tx/detail/SetRemarks.cpp @@ -155,7 +155,8 @@ getRemarksIssuer(T const& sleO) break; } - case ltNFTOKEN_OFFER: { + case ltNFTOKEN_OFFER: + case ltORACLE: { issuer = sleO->getAccountID(sfOwner); break; }