Skip to content

Commit

Permalink
Update multisig.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kaola526 authored Jun 14, 2022
1 parent de550c8 commit 2e3b840
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cli/multisig.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 2e3b840

Please sign in to comment.