mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
fixup! account_objects test
This commit is contained in:
committed by
Richard Holland
parent
bcdaca0f23
commit
ef3272b3ad
@@ -512,6 +512,28 @@ public:
|
||||
BEAST_EXPECT(ticket[sfLedgerEntryType.jsonName] == jss::Ticket);
|
||||
BEAST_EXPECT(ticket[sfTicketSequence.jsonName].asUInt() == 12);
|
||||
}
|
||||
{
|
||||
// Create a uri token.
|
||||
std::string const uri(maxTokenURILength, '?');
|
||||
Json::Value jfURIToken;
|
||||
jfURIToken[jss::TransactionType] = jss::URITokenMint;
|
||||
jfURIToken[jss::Flags] = tfBurnable;
|
||||
jfURIToken[jss::Account] = gw.human();
|
||||
jfURIToken[jss::uri] = strHex(uri);
|
||||
env(jfURIToken);
|
||||
env.close();
|
||||
}
|
||||
{
|
||||
// Find the uri token.
|
||||
std::string const uri(maxTokenURILength, '?');
|
||||
Json::Value const resp = acct_objs(gw, jss::uri_token);
|
||||
BEAST_EXPECT(acct_objs_is_size(resp, 1));
|
||||
|
||||
auto const& uritoken = resp[jss::result][jss::account_objects][0u];
|
||||
BEAST_EXPECT(uritoken[sfOwner.jsonName] == gw.human());
|
||||
BEAST_EXPECT(uritoken[sfIssuer.jsonName] == gw.human());
|
||||
BEAST_EXPECT(uritoken[sfURI.jsonName] == strHex(uri));
|
||||
}
|
||||
{
|
||||
// See how "deletion_blockers_only" handles gw's directory.
|
||||
Json::Value params;
|
||||
|
||||
Reference in New Issue
Block a user