From f644cf11e103b620ee83462ae7344493586ccaf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 8 Feb 2024 23:47:17 +0100 Subject: [PATCH] lpmarket: Fix stub SectorStatus --- provider/lpmarket/fakelm/lmimpl.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/provider/lpmarket/fakelm/lmimpl.go b/provider/lpmarket/fakelm/lmimpl.go index 3a93dbd00..65c57d13b 100644 --- a/provider/lpmarket/fakelm/lmimpl.go +++ b/provider/lpmarket/fakelm/lmimpl.go @@ -5,6 +5,7 @@ import ( "encoding/base64" "github.com/BurntSushi/toml" "github.com/filecoin-project/go-jsonrpc/auth" + "github.com/filecoin-project/go-state-types/big" "github.com/filecoin-project/lotus/lib/harmony/harmonydb" "github.com/filecoin-project/lotus/node/config" "github.com/gbrlsnchs/jwt/v3" @@ -85,9 +86,9 @@ func (l *LMRPCProvider) SectorsStatus(ctx context.Context, sid abi.SectorNumber, SealProof: 0, Activation: 0, Expiration: 0, - DealWeight: abi.DealWeight{}, - VerifiedDealWeight: abi.DealWeight{}, - InitialPledge: abi.TokenAmount{}, + DealWeight: big.Zero(), + VerifiedDealWeight: big.Zero(), + InitialPledge: big.Zero(), OnTime: 0, Early: 0, }, nil @@ -120,9 +121,9 @@ func (l *LMRPCProvider) SectorsStatus(ctx context.Context, sid abi.SectorNumber, SealProof: 0, Activation: 0, Expiration: 0, - DealWeight: abi.DealWeight{}, - VerifiedDealWeight: abi.DealWeight{}, - InitialPledge: abi.TokenAmount{}, + DealWeight: big.Zero(), + VerifiedDealWeight: big.Zero(), + InitialPledge: big.Zero(), OnTime: 0, Early: 0, }, nil