From 33bdaabcca55883a19e6beee6af2e2028a4fdcf7 Mon Sep 17 00:00:00 2001 From: beep Date: Wed, 2 Oct 2024 15:33:25 +0800 Subject: [PATCH] docs(x/bank): fix function comments (#22039) --- x/bank/v2/keeper/restriction.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/bank/v2/keeper/restriction.go b/x/bank/v2/keeper/restriction.go index 048d090ec7c2..e8d0245615f8 100644 --- a/x/bank/v2/keeper/restriction.go +++ b/x/bank/v2/keeper/restriction.go @@ -46,17 +46,17 @@ func (r *sendRestriction) apply(ctx context.Context, fromAddr, toAddr []byte, am return r.fn(ctx, fromAddr, toAddr, amt) } -// AppendSendRestriction adds the provided SendRestrictionFn to run after previously provided restrictions. +// AppendGlobalSendRestriction adds the provided SendRestrictionFn to run after previously provided global restrictions. func (k Keeper) AppendGlobalSendRestriction(restriction types.SendRestrictionFn) { k.sendRestriction.append(restriction) } -// PrependSendRestriction adds the provided SendRestrictionFn to run before previously provided restrictions. +// PrependGlobalSendRestriction adds the provided SendRestrictionFn to run before previously provided global restrictions. func (k Keeper) PrependGlobalSendRestriction(restriction types.SendRestrictionFn) { k.sendRestriction.prepend(restriction) } -// ClearSendRestriction removes the send restriction (if there is one). +// ClearGlobalSendRestriction removes the global send restriction (if there is one). func (k Keeper) ClearGlobalSendRestriction() { k.sendRestriction.clear() }