refactor: Assorted small DID fixes (#6552)

This change:
* Makes `addSLE` in `DIDSet` a static function, instead of a free function.
* Renames `Attestation` to `Data` everywhere (an artifact of a previous name for the field).
* Actually runs a set of tests that were not included in the `run` function of `DID_test`.
This commit is contained in:
Mayukha Vadari
2026-03-17 10:44:07 -04:00
committed by GitHub
parent 252c6768df
commit 78b2d70a11
5 changed files with 8 additions and 6 deletions

View File

@@ -189,7 +189,7 @@ struct DID_test : public beast::unit_test::suite
Account const edna{"edna"};
Account const francis{"francis"};
Account const george{"george"};
env.fund(XRP(5000), alice, bob, charlie, dave, edna, francis);
env.fund(XRP(5000), alice, bob, charlie, dave, edna, francis, george);
env.close();
BEAST_EXPECT(ownerCount(env, alice) == 0);
BEAST_EXPECT(ownerCount(env, bob) == 0);
@@ -355,12 +355,14 @@ struct DID_test : public beast::unit_test::suite
testAccountReserve(all);
testSetInvalid(all);
testDeleteInvalid(all);
testSetValidInitial(all);
testSetModify(all);
testEnabled(all - emptyDID);
testAccountReserve(all - emptyDID);
testSetInvalid(all - emptyDID);
testDeleteInvalid(all - emptyDID);
testSetValidInitial(all - emptyDID);
testSetModify(all - emptyDID);
}
};