docs(x/bank): fix function comments (#22039)

This commit is contained in:
beep 2024-10-02 15:33:25 +08:00 committed by GitHub
parent fc28210a72
commit 33bdaabcca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
}