Merge pull request #2815 from filecoin-project/fix/storage-deals-prop-cid
Fix proposal CID in `lotus-miner storage-deals list`
This commit is contained in:
commit
1feec642da
@ -357,11 +357,7 @@ var dealsListCmd = &cli.Command{
|
||||
_, _ = fmt.Fprintf(w, "ProposalCid\tDealId\tState\tClient\tSize\tPrice\tDuration\n")
|
||||
|
||||
for _, deal := range deals {
|
||||
pc, err := deal.Proposal.Cid()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
propcid := pc.String()
|
||||
propcid := deal.ProposalCid.String()
|
||||
propcid = "..." + propcid[len(propcid)-8:]
|
||||
|
||||
fil := types.FIL(types.BigMul(deal.Proposal.StoragePricePerEpoch, types.NewInt(uint64(deal.Proposal.Duration()))))
|
||||
|
Loading…
Reference in New Issue
Block a user