Skip to content

Commit

Permalink
docs(x/bank): fix function comments
Browse files Browse the repository at this point in the history
  • Loading branch information
beepdeepor committed Oct 2, 2024
1 parent fc28210 commit 4c15c23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/bank/v2/keeper/restriction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 4c15c23

Please sign in to comment.