From 0019187a4f67dec7694350329cdb972eafda7ddf Mon Sep 17 00:00:00 2001 From: Peter Rabbitson Date: Tue, 11 May 2021 04:44:07 +0200 Subject: [PATCH] Forgotten pre-API zero-price check --- cli/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/client.go b/cli/client.go index 2bea31cd6..84e077943 100644 --- a/cli/client.go +++ b/cli/client.go @@ -479,7 +479,7 @@ The minimum value is 518400 (6 months).`, var proposal *cid.Cid if cctx.Bool("manual-stateless-deal") { - if ref.TransferType != storagemarket.TTManual { + if ref.TransferType != storagemarket.TTManual || price.Int64() != 0 { return xerrors.New("when manual-stateless-deal is enabled, you must also provide a 'price' of 0 and specify 'manual-piece-cid' and 'manual-piece-size'") } proposal, err = api.ClientStatelessDeal(ctx, sdParams)