This commit is contained in:
John Freeman
2024-11-22 16:04:32 -06:00
committed by Bronek Kozicki
parent ea6c040f10
commit ea30f44247

View File

@@ -239,37 +239,36 @@ class Vault_test : public beast::unit_test::suite
AND_THEN("create");
mptt.create({.flags = tfMPTCanTransfer | tfMPTCanLock});
Asset asset = mptt.issuanceID();
auto [tx, keylet] = vault.create({.owner = owner, .asset = asset});
mptt.create({.flags = tfMPTCanTransfer | tfMPTCanLock});
Asset asset = mptt.issuanceID();
auto [tx, keylet] = vault.create({.owner = owner, .asset = asset});
SUBCASE("create")
SUBCASE("create")
{
env(tx);
env.close();
SUBCASE("update")
{
env(tx);
env.close();
auto tx = vault.set({.owner = owner, .id = keylet.key});
SUBCASE("update")
SUBCASE("happy path")
{
auto tx = vault.set({.owner = owner, .id = keylet.key});
SUBCASE("happy path")
{
tx[sfData] = "ABCD";
tx[sfAssetMaximum] = 123;
env(tx);
env.close();
}
tx[sfData] = "ABCD";
tx[sfAssetMaximum] = 123;
env(tx);
env.close();
}
}
SUBCASE("global lock")
{
mptt.set({.account = issuer, .flags = tfMPTLock});
env(tx, ter(tecLOCKED));
}
}
SUBCASE("global lock")
{
mptt.set({.account = issuer, .flags = tfMPTLock});
env(tx, ter(tecLOCKED));
}
SUBCASE("MPT cannot transfer")
{
MPTTester mptt{env, issuer, {.fund = false}};
@@ -375,8 +374,9 @@ public:
void
run() override
{
pass();
// EXECUTE(CreateUpdateDelete);
EXECUTE(WithXRP);
// EXECUTE(WithXRP);
}
};