From a3f5d0f5903f7be7d5a0247a0277822dbac5d3a8 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 6 Nov 2020 11:06:57 +0800 Subject: [PATCH] match data type for reward state api --- chain/actors/builtin/reward/v2.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chain/actors/builtin/reward/v2.go b/chain/actors/builtin/reward/v2.go index b7cb49102..c9a591532 100644 --- a/chain/actors/builtin/reward/v2.go +++ b/chain/actors/builtin/reward/v2.go @@ -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 } @@ -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 }