Fix a couple of errors

- Mark variable only used in asserts as [[maybe_unused]].
- Restore commented out line that I think I resolved wrong in an earlier
  merge to fix Vault tests.
This commit is contained in:
Ed Hennis
2025-07-29 14:58:36 -04:00
parent 6f00f296c8
commit bba9119a75
2 changed files with 2 additions and 1 deletions

View File

@@ -148,7 +148,7 @@ VaultWithdraw::preclaim(PreclaimContext const& ctx)
}
// The destination account must have consented to receive the asset by
// creating a RippleState or MPToken
// authType = AuthType::StrongAuth;
authType = AuthType::StrongAuth;
}
// Destination MPToken (for an MPT) or trust line (for an IOU) must exist

View File

@@ -1133,6 +1133,7 @@ createPseudoAccount(
uint256 const& pseudoOwnerKey,
SField const& ownerField)
{
[[maybe_unused]]
auto const& fields = getPseudoAccountFields();
XRPL_ASSERT(
std::count_if(