Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
masihyeganeh committed Apr 29, 2024
1 parent 8530ff2 commit cc7278c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/asset/ft/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ func (k Keeper) SetWhitelistedBalance(ctx sdk.Context, sender, addr sdk.AccAddre
}

if def.IsAdmin(addr) {
return sdkerrors.Wrap(cosmoserrors.ErrUnauthorized, "issuer's balance can't be whitelisted")
return sdkerrors.Wrap(cosmoserrors.ErrUnauthorized, "admin's balance can't be whitelisted")
}

if err = def.CheckFeatureAllowed(sender, types.Feature_whitelisting); err != nil {
Expand Down Expand Up @@ -1009,7 +1009,7 @@ func (k Keeper) freezingChecks(ctx sdk.Context, sender, addr sdk.AccAddress, coi
}

if def.IsAdmin(addr) {
return sdkerrors.Wrap(cosmoserrors.ErrUnauthorized, "issuer's balance can't be frozen")
return sdkerrors.Wrap(cosmoserrors.ErrUnauthorized, "admin's balance can't be frozen")
}

return def.CheckFeatureAllowed(sender, types.Feature_freezing)
Expand Down

0 comments on commit cc7278c

Please sign in to comment.