mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add ltORACLE for Remarks target (#562)
This commit is contained in:
@@ -18,11 +18,13 @@
|
|||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
||||||
#include <test/jtx.h>
|
#include <test/jtx.h>
|
||||||
|
#include <test/jtx/Oracle.h>
|
||||||
#include <xrpld/core/ConfigSections.h>
|
#include <xrpld/core/ConfigSections.h>
|
||||||
#include <xrpl/protocol/Feature.h>
|
#include <xrpl/protocol/Feature.h>
|
||||||
#include <xrpl/protocol/Indexes.h>
|
#include <xrpl/protocol/Indexes.h>
|
||||||
#include <xrpl/protocol/TxFlags.h>
|
#include <xrpl/protocol/TxFlags.h>
|
||||||
#include <xrpl/protocol/jss.h>
|
#include <xrpl/protocol/jss.h>
|
||||||
|
#include <chrono>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
namespace ripple {
|
namespace ripple {
|
||||||
@@ -497,6 +499,19 @@ struct SetRemarks_test : public beast::unit_test::suite
|
|||||||
env.close();
|
env.close();
|
||||||
validateRemarks(*env.current(), id, marks);
|
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
|
// ltDEPOSIT_PREAUTH
|
||||||
{
|
{
|
||||||
env(fset(bob, asfDepositAuth));
|
env(fset(bob, asfDepositAuth));
|
||||||
|
|||||||
@@ -155,7 +155,8 @@ getRemarksIssuer(T const& sleO)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case ltNFTOKEN_OFFER: {
|
case ltNFTOKEN_OFFER:
|
||||||
|
case ltORACLE: {
|
||||||
issuer = sleO->getAccountID(sfOwner);
|
issuer = sleO->getAccountID(sfOwner);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user