From 6eae0f3d1ac85bc61e2d73cdd0650e7fea694c2f Mon Sep 17 00:00:00 2001 From: expertdicer Date: Mon, 1 Apr 2024 12:01:09 +0700 Subject: [PATCH] add log --- x/asset/keeper/restrictions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/asset/keeper/restrictions.go b/x/asset/keeper/restrictions.go index 9f786a6e..047b76b2 100644 --- a/x/asset/keeper/restrictions.go +++ b/x/asset/keeper/restrictions.go @@ -44,7 +44,7 @@ func (k Keeper) AssetSendRestriction(ctx sdk.Context, fromAddr, toAddr sdk.AccAd if isAuthorizedFrom && isAuthorizedTo { continue } else { //nolint:revive // superfluous else, could fix, but not worth it? - fmt.Println("%s is not authorized to send coin to %s with %s", fromAddr, toAddr, coin.Denom) + fmt.Println("%s is not authorized to send coin to %s with %s", fromAddr.String(), toAddr.String(), coin.Denom) err = errorsmod.Wrapf(types.ErrNotAuthorized, "%s is not authorized to send coin to %s with %s", fromAddr, toAddr, coin.Denom) break }