Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kaola526 committed Jun 14, 2022
1 parent bc25a3f commit 51ad079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/multisig.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,12 +904,12 @@ var msigAddProposeCmd = &cli.Command{
}

for _, s := range signers {
signerActor, err := api.StateAccountKey(ctx, s, types.EmptyTSK)
addrId, err := api.StateLookupID(ctx, addr, types.EmptyTSK)
if err != nil {
return err
}

if signerActor == addr {
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 51ad079

Please sign in to comment.