diff --git a/chain/actors/builtin/market/market.go b/chain/actors/builtin/market/market.go index 628b27e0806..0e4d9e01b78 100644 --- a/chain/actors/builtin/market/market.go +++ b/chain/actors/builtin/market/market.go @@ -61,6 +61,7 @@ type State interface { VerifyDealsForActivation( minerAddr address.Address, deals []abi.DealID, currEpoch, sectorExpiry abi.ChainEpoch, ) (weight, verifiedWeight abi.DealWeight, err error) + NextID() (abi.DealID, error) } type BalanceTable interface { diff --git a/chain/actors/builtin/market/v0.go b/chain/actors/builtin/market/v0.go index 20d38b5f125..f3b885995b3 100644 --- a/chain/actors/builtin/market/v0.go +++ b/chain/actors/builtin/market/v0.go @@ -105,6 +105,10 @@ func (s *state0) VerifyDealsForActivation( return market0.ValidateDealsForActivation(&s.State, s.store, deals, minerAddr, sectorExpiry, currEpoch) } +func (s *state0) NextID() (abi.DealID, error) { + return s.State.NextID, nil +} + type balanceTable0 struct { *adt0.BalanceTable } diff --git a/chain/actors/builtin/market/v2.go b/chain/actors/builtin/market/v2.go index a5e5c7b45d4..1ce051c387b 100644 --- a/chain/actors/builtin/market/v2.go +++ b/chain/actors/builtin/market/v2.go @@ -106,6 +106,10 @@ func (s *state2) VerifyDealsForActivation( return w, vw, err } +func (s *state2) NextID() (abi.DealID, error) { + return s.State.NextID, nil +} + type balanceTable2 struct { *adt2.BalanceTable } diff --git a/chain/actors/builtin/market/v3.go b/chain/actors/builtin/market/v3.go index 3309d37a7ef..15251985be9 100644 --- a/chain/actors/builtin/market/v3.go +++ b/chain/actors/builtin/market/v3.go @@ -106,6 +106,10 @@ func (s *state3) VerifyDealsForActivation( return w, vw, err } +func (s *state3) NextID() (abi.DealID, error) { + return s.State.NextID, nil +} + type balanceTable3 struct { *adt3.BalanceTable }