mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 17:27:00 +00:00
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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user