Add auth checks for convert (#5937)

This commit is contained in:
Shawn Xie
2025-10-24 11:42:43 -04:00
committed by GitHub
parent e4a8ba51f9
commit 3899e3f36c
5 changed files with 111 additions and 19 deletions

View File

@@ -501,7 +501,8 @@ accountHolds(
// Only if auth check is needed, as it needs to do an additional read
// operation. Note featureSingleAssetVault will affect error codes.
if (zeroIfUnauthorized == ahZERO_IF_UNAUTHORIZED &&
view.rules().enabled(featureSingleAssetVault))
(view.rules().enabled(featureSingleAssetVault) ||
view.rules().enabled(featureConfidentialTransfer)))
{
if (auto const err =
requireAuth(view, mptIssue, account, AuthType::StrongAuth);