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
2 changed files with 6 additions and 2 deletions
+3 -1
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()
+3 -1
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()