28        using namespace test::jtx;
 
   33        auto const alice = 
Account(
"alice");
 
   34        env.fund(
XRP(1000), alice);
 
   40        auto const startLegSeq = env.current()->info().seq;
 
   41        for (
int i = 0; i < 2; ++i)
 
   47                env.closed()->txRead(env.tx()->getTransactionID()).second);
 
   51        auto const endLegSeq = env.closed()->info().seq;
 
   58                env.app().getLedgerMaster().txnIdFromIndex(ledgerSeq, txnIndex);
 
   59            BEAST_EXPECT(!result);
 
   63            uint32_t txnIndex = metas[0]->getFieldU32(sfTransactionIndex);
 
   65                env.app().getLedgerMaster().txnIdFromIndex(0, txnIndex);
 
   66            BEAST_EXPECT(!result);
 
   71                env.app().getLedgerMaster().txnIdFromIndex(endLegSeq, 0);
 
   72            BEAST_EXPECT(!result);
 
   76            uint32_t txnIndex = metas[0]->getFieldU32(sfTransactionIndex);
 
   77            auto result = env.app().getLedgerMaster().txnIdFromIndex(
 
   78                endLegSeq + 1, txnIndex);
 
   79            BEAST_EXPECT(!result);
 
   83            uint32_t txnIndex = metas[0]->getFieldU32(sfTransactionIndex);
 
   84            auto result = env.app().getLedgerMaster().txnIdFromIndex(
 
   85                startLegSeq, txnIndex);
 
   88                uint256(
"277F4FD89C20B92457FEF05FF63F6405563AD0563C73D967A29727" 
   93            uint32_t txnIndex = metas[1]->getFieldU32(sfTransactionIndex);
 
   94            auto result = env.app().getLedgerMaster().txnIdFromIndex(
 
   95                startLegSeq + 1, txnIndex);
 
   98                uint256(
"293DF7335EBBAF4420D52E70ABF470EB4C5792CAEA2F91F76193C2"