Add check for AssetTotal in VaultDelete

This commit is contained in:
Bronek Kozicki
2025-03-26 19:17:07 +00:00
parent 2e13dc1e85
commit b6d7ef6c02

View File

@@ -59,6 +59,9 @@ VaultDelete::preclaim(PreclaimContext const& ctx)
if (vault->at(sfAssetAvailable) != 0)
return tecHAS_OBLIGATIONS;
if (vault->at(sfAssetTotal) != 0)
return tecHAS_OBLIGATIONS;
return tesSUCCESS;
}