From ebcceb9061d8cd6009b06cf62c5d54854f34fd2d Mon Sep 17 00:00:00 2001 From: Rootul P Date: Mon, 28 Aug 2023 12:12:04 -0400 Subject: [PATCH] docs: improve DeductFeeDecorator godoc (#17559) Co-authored-by: Marko (cherry picked from commit acc8c4ccb215cb35d83ef35acf54b7471245c9f1) --- x/auth/ante/fee.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/auth/ante/fee.go b/x/auth/ante/fee.go index 80141ef0b5dc..66b2ba3684a9 100644 --- a/x/auth/ante/fee.go +++ b/x/auth/ante/fee.go @@ -12,9 +12,9 @@ import ( // the effective fee should be deducted later, and the priority should be returned in abci response. type TxFeeChecker func(ctx sdk.Context, tx sdk.Tx) (sdk.Coins, int64, error) -// DeductFeeDecorator deducts fees from the first signer of the tx -// If the first signer does not have the funds to pay for the fees, return with InsufficientFunds error -// Call next AnteHandler if fees successfully deducted +// DeductFeeDecorator deducts fees from the fee payer. The fee payer is the fee granter (if specified) or first signer of the tx. +// If the fee payer does not have the funds to pay for the fees, return an InsufficientFunds error. +// Call next AnteHandler if fees successfully deducted. // CONTRACT: Tx must implement FeeTx interface to use DeductFeeDecorator type DeductFeeDecorator struct { accountKeeper AccountKeeper