Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
expertdicer committed Apr 1, 2024
1 parent 46f88bc commit 6eae0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/asset/keeper/restrictions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 47 in x/asset/keeper/restrictions.go

View workflow job for this annotation

GitHub Actions / test (1.19.x, ubuntu-latest)

fmt.Println call has possible formatting directive %s

Check failure on line 47 in x/asset/keeper/restrictions.go

View workflow job for this annotation

GitHub Actions / test (1.20.x, ubuntu-latest)

fmt.Println call has possible formatting directive %s
err = errorsmod.Wrapf(types.ErrNotAuthorized, "%s is not authorized to send coin to %s with %s", fromAddr, toAddr, coin.Denom)
break
}
Expand Down

0 comments on commit 6eae0f3

Please sign in to comment.