Skip to content

Commit

Permalink
Fix lotus msig approve
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Jan 13, 2021
1 parent b33bf16 commit b6bcd97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cli/multisig.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions cmd/lotus-storage-miner/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
}
Expand Down

0 comments on commit b6bcd97

Please sign in to comment.