fix: VaultVersion

This commit is contained in:
Vito
2026-07-22 11:58:17 +02:00
parent a63a326886
commit fac3dfccc8
2 changed files with 5 additions and 3 deletions

View File

@@ -149,10 +149,13 @@ getVaultVersion(SLE::const_ref vault)
{
case 0:
return VaultVersion::Legacy;
case 2:
case 1:
return VaultVersion::CashBasis;
default:
return VaultVersion::Invalid;
// LCOV_EXCL_START
UNREACHABLE("xrpl::getVaultVersion : invalid vault version");
return VaultVersion::Legacy;
// LCOV_EXCL_STOP
}
}