Merge pull request #9241 from filecoin-project/fix/control-list-panic
fix: cli: fix panic in `lotus-miner actor control list`
This commit is contained in:
commit
e3d59288fe
@ -549,7 +549,9 @@ var actorControlList = &cli.Command{
|
||||
}
|
||||
kstr := k.String()
|
||||
if !cctx.Bool("verbose") {
|
||||
kstr = kstr[:9] + "..."
|
||||
if len(kstr) > 9 {
|
||||
kstr = kstr[:6] + "..."
|
||||
}
|
||||
}
|
||||
|
||||
bstr := types.FIL(b).String()
|
||||
|
@ -378,7 +378,9 @@ var actorControlList = &cli.Command{
|
||||
|
||||
kstr := k.String()
|
||||
if !cctx.Bool("verbose") {
|
||||
kstr = kstr[:9] + "..."
|
||||
if len(kstr) > 9 {
|
||||
kstr = kstr[:6] + "..."
|
||||
}
|
||||
}
|
||||
|
||||
bstr := types.FIL(b).String()
|
||||
|
Loading…
Reference in New Issue
Block a user