From 534e43e1d367e29636bcc600c4c4da6d29d8d43b Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 14 Apr 2022 20:10:51 +0300 Subject: [PATCH] fix lotus-shed --- cmd/lotus-shed/deal-label.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/lotus-shed/deal-label.go b/cmd/lotus-shed/deal-label.go index 483415987..6c222a4b8 100644 --- a/cmd/lotus-shed/deal-label.go +++ b/cmd/lotus-shed/deal-label.go @@ -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) }