From 2e3b8402ccef54618b93792a6b200e4ad4dcdc73 Mon Sep 17 00:00:00 2001 From: kaola526 <88829586+kaola526@users.noreply.github.com> Date: Wed, 15 Jun 2022 06:59:17 +0800 Subject: [PATCH] Update multisig.go --- cli/multisig.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cli/multisig.go b/cli/multisig.go index 3a868b6ed..ad5f4e757 100644 --- a/cli/multisig.go +++ b/cli/multisig.go @@ -899,13 +899,13 @@ var msigAddProposeCmd = &cli.Command{ if err != nil { return err } - + + addrId, err := api.StateLookupID(ctx, addr, types.EmptyTSK) + if err != nil { + return err + } + for _, s := range signers { - addrId, err := api.StateLookupID(ctx, addr, types.EmptyTSK) - if err != nil { - return err - } - if s == addrId { return fmt.Errorf("The add a signer address(%s) is included in the signers", addr.String()) }