From 3c551788c97cfeabfecb04b063fafcd1c9d6d271 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 3 Jul 2020 23:35:22 +0300 Subject: [PATCH] cli: fix parseCosigner method --- cli/smartcontract/smart_contract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index 10ca9c2cf..fe8b15a6c 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -427,7 +427,7 @@ func invokeInternal(ctx *cli.Context, signAndPush bool) error { for i, c := range args[cosignersStart:] { cosigner, err := parseCosigner(c) if err != nil { - return cli.NewExitError(fmt.Errorf("failed to parse cosigner #%d: %v", i+cosignersStart+1, err), 1) + return cli.NewExitError(fmt.Errorf("failed to parse cosigner #%d: %v", i+1, err), 1) } cosigners = append(cosigners, cosigner) } @@ -692,7 +692,7 @@ func parseCosigner(c string) (transaction.Cosigner, error) { err error res = transaction.Cosigner{} ) - data := strings.SplitN(strings.ToLower(c), ":", 2) + data := strings.SplitN(c, ":", 2) s := data[0] if len(s) == 2*util.Uint160Size+2 && s[0:2] == "0x" { s = s[2:]