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:
Łukasz Magiera 2022-09-16 14:11:18 +02:00 committed by GitHub
commit e3d59288fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

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

View File

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