Address Confidential Transfer Feedback and uncomment tests (#7541)

This commit is contained in:
Peter Chen
2026-06-17 10:32:18 -07:00
committed by GitHub
parent 31a3a0db62
commit 54e0f58424
27 changed files with 1026 additions and 599 deletions

View File

@@ -5058,10 +5058,11 @@ class Invariants_test : public beast::unit_test::Suite
{"MPToken sfConfidentialBalanceVersion not updated when sfConfidentialBalanceSpending "
"changed"},
[&mptID](Account const& a1, Account const& a2, ApplyContext& ac) {
Blob const kChangedConfidentialSpending = {0xBA, 0xDD};
auto sleToken = ac.view().peek(keylet::mptoken(mptID, a2.id()));
if (!sleToken)
return false;
sleToken->setFieldVL(sfConfidentialBalanceSpending, Blob{0xBA, 0xDD});
sleToken->setFieldVL(sfConfidentialBalanceSpending, kChangedConfidentialSpending);
// DO NOT update sfConfidentialBalanceVersion
ac.view().update(sleToken);