more fixes

This commit is contained in:
Mayukha Vadari
2026-07-01 15:51:51 -04:00
parent d9c683d822
commit da31106aa5
3 changed files with 4 additions and 4 deletions

View File

@@ -217,10 +217,10 @@ public:
[[nodiscard]] AccountID
getAccountID(SField const& field) const;
/** The account responsible for the fee and authorization: the delegate when
/** The account responsible for the authorization: the delegate when
sfDelegate is present, otherwise the account. */
[[nodiscard]] AccountID
getFeePayer() const;
getInitiator() const;
[[nodiscard]] Blob
getFieldVL(SField const& field) const;

View File

@@ -634,7 +634,7 @@ STObject::getAccountID(SField const& field) const
}
AccountID
STObject::getFeePayer() const
STObject::getInitiator() const
{
// If sfDelegate is present, the delegate account is the payer
// note: if a delegate is specified, its authorization to act on behalf of the account is

View File

@@ -440,7 +440,7 @@ Batch::preflightSigValidated(PreflightContext const& ctx)
{
// A delegated inner is signed by the delegate, not the account holder,
// so the delegate is the required signer when present.
AccountID const authorizer = rb.getFeePayer();
AccountID const authorizer = rb.getInitiator();
// The outer account signs the batch itself, so it is never added to the
// required signers.