mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-18 17:45:48 +00:00
Add ltORACLE for Remarks target (#562)
This commit is contained in:
@@ -18,11 +18,13 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <test/jtx.h>
|
||||
#include <test/jtx/Oracle.h>
|
||||
#include <xrpld/core/ConfigSections.h>
|
||||
#include <xrpl/protocol/Feature.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
#include <xrpl/protocol/TxFlags.h>
|
||||
#include <xrpl/protocol/jss.h>
|
||||
#include <chrono>
|
||||
#include <sstream>
|
||||
|
||||
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));
|
||||
|
||||
@@ -155,7 +155,8 @@ getRemarksIssuer(T const& sleO)
|
||||
break;
|
||||
}
|
||||
|
||||
case ltNFTOKEN_OFFER: {
|
||||
case ltNFTOKEN_OFFER:
|
||||
case ltORACLE: {
|
||||
issuer = sleO->getAccountID(sfOwner);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user