From 4b136e8ab13111fb9a6e530a71d8265bcbef1d96 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 31 Aug 2022 09:51:57 +0300 Subject: [PATCH] cli/sc: tune error messages for forced save/send Here we're either saving or sending a transaction (depending on `out`), but not both. Refs. #2664. --- cli/smartcontract/smart_contract.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index a61222ecb..f96935d10 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -702,14 +702,11 @@ func invokeWithArgs(ctx *cli.Context, acc *wallet.Account, wall *wallet.Wallet, return sender, cli.NewExitError(errText, 1) } - action := "save" - process := "Saving" + action := "send" + process := "Sending" if out != "" { - action += "and send" - process += "and sending" - } else { - action = "send" - process = "Sending" + action = "save" + process = "Saving" } if !ctx.Bool("force") { return sender, cli.NewExitError(errText+".\nUse --force flag to "+action+" the transaction anyway.", 1)