Skip to content

Commit

Permalink
feat: update market actor gen (#1326)
Browse files Browse the repository at this point in the history
* feat: refine the market template for auto gen
  • Loading branch information
Terryhung authored Nov 19, 2024
1 parent ac7a525 commit 3a4a2f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions chain/actors/builtin/market/actor.go.template
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ func labelFromGoString(s string) (markettypes.DealLabel, error) {

type emptyDealState struct{}

func (e *emptyDealState) SectorNumber() abi.SectorNumber {
return 0
}

func (e *emptyDealState) SectorStartEpoch() abi.ChainEpoch {
return -1
}
Expand Down
8 changes: 4 additions & 4 deletions chain/actors/builtin/market/market.go

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

0 comments on commit 3a4a2f2

Please sign in to comment.