Fix lotus msig approve

This commit is contained in:
Aayush Rajasekaran 2021-01-13 03:03:19 -05:00
parent b33bf16f70
commit b6bcd978e7
2 changed files with 6 additions and 6 deletions

View File

@ -473,12 +473,12 @@ var msigApproveCmd = &cli.Command{
return ShowHelp(cctx, fmt.Errorf("must pass at least multisig address and message ID"))
}
if cctx.Args().Len() > 5 && cctx.Args().Len() != 7 {
return ShowHelp(cctx, fmt.Errorf("usage: msig approve <msig addr> <message ID> <proposer address> <desination> <value> [ <method> <params> ]"))
if cctx.Args().Len() > 2 && cctx.Args().Len() < 5 {
return ShowHelp(cctx, fmt.Errorf("usage: msig approve <msig addr> <message ID> <proposer address> <desination> <value>"))
}
if cctx.Args().Len() > 2 && cctx.Args().Len() != 5 {
return ShowHelp(cctx, fmt.Errorf("usage: msig approve <msig addr> <message ID> <proposer address> <desination> <value>"))
if cctx.Args().Len() > 5 && cctx.Args().Len() != 7 {
return ShowHelp(cctx, fmt.Errorf("usage: msig approve <msig addr> <message ID> <proposer address> <desination> <value> [ <method> <params> ]"))
}
api, closer, err := GetFullNodeAPI(cctx)

View File

@ -717,10 +717,10 @@ var actorSetOwnerCmd = &cli.Command{
if wait.Receipt.ExitCode != 0 {
fmt.Println("owner change failed!")
return err
} else {
fmt.Println("message succeeded!")
}
fmt.Println("message succeeded!")
return nil
},
}