Fix tests post actor update

This commit is contained in:
Łukasz Magiera 2020-07-01 14:04:37 +02:00
parent a359df93c9
commit 5b73b48dc8
2 changed files with 5 additions and 1 deletions

View File

@ -207,12 +207,13 @@ func WriteGenesisMiner(maddr address.Address, sbroot string, gm *genesis.Miner,
}
func createDeals(m *genesis.Miner, k *wallet.Key, maddr address.Address, ssize abi.SectorSize) error {
for _, sector := range m.Sectors {
for i, sector := range m.Sectors {
proposal := &market.DealProposal{
PieceCID: sector.CommD,
PieceSize: abi.PaddedPieceSize(ssize),
Client: k.Address,
Provider: maddr,
Label: fmt.Sprintf("%d", i),
StartEpoch: 0,
EndEpoch: 9001,
StoragePricePerEpoch: big.Zero(),

View File

@ -1,6 +1,8 @@
package mockstorage
import (
"fmt"
"github.com/filecoin-project/go-address"
commcid "github.com/filecoin-project/go-fil-commcid"
"github.com/filecoin-project/sector-storage/mock"
@ -50,6 +52,7 @@ func PreSeal(ssize abi.SectorSize, maddr address.Address, sectors int) (*genesis
PieceSize: abi.PaddedPieceSize(ssize),
Client: maddr,
Provider: maddr,
Label: fmt.Sprintf("%d", i),
StartEpoch: 1,
EndEpoch: 10000,
StoragePricePerEpoch: big.Zero(),