From a9237659ff08ce9c73857d155ab9c864aa36ff18 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 31 Aug 2022 17:39:00 +0300 Subject: [PATCH] cli/wallet: correct error message It can be both NEP-11 and NEP-17. --- cli/wallet/nep17.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/wallet/nep17.go b/cli/wallet/nep17.go index 2185650fe..80623528b 100644 --- a/cli/wallet/nep17.go +++ b/cli/wallet/nep17.go @@ -271,7 +271,7 @@ func getNEPBalance(ctx *cli.Context, standard string, accHandler func(*cli.Conte // But if we have an exact hash, it must be correct. token, err = getTokenWithStandard(c, h, standard) if err != nil { - return cli.NewExitError(fmt.Errorf("%q is not a valid NEP-17 token: %w", name, err), 1) + return cli.NewExitError(fmt.Errorf("%q is not a valid %s token: %w", name, standard, err), 1) } } }