fix lotus-shed

This commit is contained in:
vyzo 2022-04-14 20:10:51 +03:00
parent c5e3ca3855
commit 534e43e1d3

View File

@ -4,7 +4,6 @@ import (
"context"
"fmt"
"io"
"unicode/utf8"
"github.com/filecoin-project/lotus/chain/actors/builtin/market"
@ -99,7 +98,7 @@ var dealLabelCmd = &cli.Command{
var deals []abi.DealID
if err = ps.ForEach(func(id abi.DealID, dp market.DealProposal) error {
if !utf8.Valid([]byte(dp.Label)) {
if dp.Label.IsBytes() {
deals = append(deals, id)
}