Skip to content

Commit

Permalink
Merge pull request #4745 from filcloud/reward-data-type
Browse files Browse the repository at this point in the history
match data type for reward state api
  • Loading branch information
magik6k authored Nov 6, 2020
2 parents 273da38 + a3f5d0f commit 2076abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chain/actors/builtin/reward/v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type state2 struct {
store adt.Store
}

func (s *state2) ThisEpochReward() (abi.StoragePower, error) {
func (s *state2) ThisEpochReward() (abi.TokenAmount, error) {
return s.State.ThisEpochReward, nil
}

Expand All @@ -55,11 +55,11 @@ func (s *state2) EffectiveNetworkTime() (abi.ChainEpoch, error) {
return s.State.EffectiveNetworkTime, nil
}

func (s *state2) CumsumBaseline() (abi.StoragePower, error) {
func (s *state2) CumsumBaseline() (reward2.Spacetime, error) {
return s.State.CumsumBaseline, nil
}

func (s *state2) CumsumRealized() (abi.StoragePower, error) {
func (s *state2) CumsumRealized() (reward2.Spacetime, error) {
return s.State.CumsumRealized, nil
}

Expand Down

0 comments on commit 2076abf

Please sign in to comment.