diff --git a/include/xrpl/protocol/STObject.h b/include/xrpl/protocol/STObject.h index 044e48ce62..c3bb4abdcc 100644 --- a/include/xrpl/protocol/STObject.h +++ b/include/xrpl/protocol/STObject.h @@ -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; diff --git a/src/libxrpl/protocol/STObject.cpp b/src/libxrpl/protocol/STObject.cpp index c493ba65af..3f8075f7b9 100644 --- a/src/libxrpl/protocol/STObject.cpp +++ b/src/libxrpl/protocol/STObject.cpp @@ -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 diff --git a/src/libxrpl/tx/transactors/system/Batch.cpp b/src/libxrpl/tx/transactors/system/Batch.cpp index f13ff063c1..84627f6273 100644 --- a/src/libxrpl/tx/transactors/system/Batch.cpp +++ b/src/libxrpl/tx/transactors/system/Batch.cpp @@ -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.