Skip to content

Commit

Permalink
Fix the SectorDealIDs type
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Jan 24, 2024
1 parent d14906d commit 24c91c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 43 deletions.
52 changes: 13 additions & 39 deletions builtin/v13/market/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions builtin/v13/market/market_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import (
"github.com/filecoin-project/go-state-types/builtin/v13/verifreg"
)

type SectorDealIDs struct {
Deals []abi.DealID
}
type SectorDealIDs []abi.DealID

type WithdrawBalanceParams struct {
ProviderOrClientAddress addr.Address
Expand Down
2 changes: 1 addition & 1 deletion builtin/v13/migration/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (m *marketMigrator) migrateProviderSectorsAndStates(ctx context.Context, st

var sectorDealIDs market13.SectorDealIDs
for sector, deals := range sectors {
sectorDealIDs.Deals = deals
sectorDealIDs = deals

if err := actorSectors.Put(miner13.SectorKey(sector), &sectorDealIDs); err != nil {
return cid.Undef, cid.Undef, xerrors.Errorf("failed to put sector: %w", err)
Expand Down

0 comments on commit 24c91c4

Please sign in to comment.