refactor: Use ApplyViewContext everywhere instead of ApplyView+STTx (#7618)

This commit is contained in:
Mayukha Vadari
2026-07-02 13:22:04 -04:00
committed by GitHub
parent 0240203060
commit cecea82835
41 changed files with 244 additions and 235 deletions

View File

@@ -5930,7 +5930,7 @@ class Vault_test : public beast::unit_test::Suite
auto const dummyTx = *env.jt(noop(holder)).stx;
BEAST_EXPECT(
removeEmptyHolding(sb, dummyTx, holder.id(), MPTIssue(mpt.issuanceID()), j) ==
removeEmptyHolding({sb, dummyTx}, holder.id(), MPTIssue(mpt.issuanceID()), j) ==
tecHAS_OBLIGATIONS);
BEAST_EXPECT(sb.peek(tokenKeylet) != nullptr);
}
@@ -7544,7 +7544,7 @@ class Vault_test : public beast::unit_test::Suite
// Transaction fails if the data field is set, but is empty
{
testcase("VaultDelete memo data featureLendingProtocolV1_1 enabled data empty");
delTx[sfMemoData] = strHex(std::string(0, 'A'));
delTx[sfMemoData] = std::string();
env(delTx, Ter(temMALFORMED));
env.close();
}