mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 23:45:51 +00:00
fix
This commit is contained in:
committed by
Bronek Kozicki
parent
ea6c040f10
commit
ea30f44247
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user