Merge pull request #2282 from filecoin-project/fix/msig-create-no-addrs
error out when trying to create multisig with no addresses
This commit is contained in:
commit
41d3ac2159
@ -70,6 +70,10 @@ var msigCreateCmd = &cli.Command{
|
||||
defer closer()
|
||||
ctx := ReqContext(cctx)
|
||||
|
||||
if cctx.Args().Len() < 1 {
|
||||
return fmt.Errorf("multisigs must have at least one signer")
|
||||
}
|
||||
|
||||
var addrs []address.Address
|
||||
for _, a := range cctx.Args().Slice() {
|
||||
addr, err := address.NewFromString(a)
|
||||
|
Loading…
Reference in New Issue
Block a user