refactor: Use ReadView instead of ApplyView in authorizedDepositPreauth() (#6560)

This commit is contained in:
tequ
2026-03-18 04:56:51 +09:00
committed by GitHub
parent 013c2d6a56
commit b129b71c33
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ validDomain(ReadView const& view, uint256 domainID, AccountID const& subject);
// This function is only called when we about to return tecNO_PERMISSION
// because all the checks for the DepositPreauth authorization failed.
TER
authorizedDepositPreauth(ApplyView const& view, STVector256 const& ctx, AccountID const& dst);
authorizedDepositPreauth(ReadView const& view, STVector256 const& ctx, AccountID const& dst);
// Sort credentials array, return empty set if there are duplicates
std::set<std::pair<AccountID, Slice>>

View File

@@ -197,7 +197,7 @@ validDomain(ReadView const& view, uint256 domainID, AccountID const& subject)
}
TER
authorizedDepositPreauth(ApplyView const& view, STVector256 const& credIDs, AccountID const& dst)
authorizedDepositPreauth(ReadView const& view, STVector256 const& credIDs, AccountID const& dst)
{
std::set<std::pair<AccountID, Slice>> sorted;
std::vector<std::shared_ptr<SLE const>> lifeExtender;