Skip to content

Commit

Permalink
Final touches on that updated comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpicyLemon committed Jul 26, 2024
1 parent 62f98e1 commit 98fd20f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/marker/keeper/send_restrictions.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func (k Keeper) SendRestrictionFn(goCtx context.Context, fromAddr, toAddr sdk.Ac
// a marker account is if an admin creates one using the marker module's GrantAllowance endpoint.
// So if a feegrant is in use, that means the sending of these funds is authorized.
// We also assume that other stuff is handling the actual checking and use of that feegrant,
// so we don't need to worry about its details in here.
// so we don't need to worry about its details in here, and that HasFeeGrantInUse is only ever
// true when collecting fees.
if !internalsdk.HasFeeGrantInUse(ctx) {
if len(admin) == 0 {
return nil, fmt.Errorf("cannot withdraw from marker account %s (%s)",
Expand Down

0 comments on commit 98fd20f

Please sign in to comment.