mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-30 02:20:39 +00:00
Address Confidential Transfer Feedback and uncomment tests (#7541)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user