Update multisig.go

This commit is contained in:
kaola526 2022-06-15 06:59:17 +08:00 committed by GitHub
parent de550c8bbb
commit 2e3b8402cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())
}