Merge pull request #4745 from filcloud/reward-data-type
match data type for reward state api
This commit is contained in:
commit
2076abf0c1
@ -28,7 +28,7 @@ type state2 struct {
|
|||||||
store adt.Store
|
store adt.Store
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *state2) ThisEpochReward() (abi.StoragePower, error) {
|
func (s *state2) ThisEpochReward() (abi.TokenAmount, error) {
|
||||||
return s.State.ThisEpochReward, nil
|
return s.State.ThisEpochReward, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,11 +55,11 @@ func (s *state2) EffectiveNetworkTime() (abi.ChainEpoch, error) {
|
|||||||
return s.State.EffectiveNetworkTime, nil
|
return s.State.EffectiveNetworkTime, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *state2) CumsumBaseline() (abi.StoragePower, error) {
|
func (s *state2) CumsumBaseline() (reward2.Spacetime, error) {
|
||||||
return s.State.CumsumBaseline, nil
|
return s.State.CumsumBaseline, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *state2) CumsumRealized() (abi.StoragePower, error) {
|
func (s *state2) CumsumRealized() (reward2.Spacetime, error) {
|
||||||
return s.State.CumsumRealized, nil
|
return s.State.CumsumRealized, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user