From 3140f75d16b4252428525bce3ef5943731bf7b76 Mon Sep 17 00:00:00 2001 From: xiaohuo Date: Fri, 9 Apr 2021 02:34:53 +0800 Subject: [PATCH] fix: assert type error --- hmy/staking.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hmy/staking.go b/hmy/staking.go index 21fe26c34..4cf677d17 100644 --- a/hmy/staking.go +++ b/hmy/staking.go @@ -557,8 +557,7 @@ func (hmy *Harmony) GetUndelegationPayouts( payouts, ok := hmy.undelegationPayoutsCache.Get(epoch.Uint64()) if ok { - result := payouts.(UndelegationPayouts) - return &result, nil + return payouts.(*UndelegationPayouts), nil } undelegationPayouts := NewUndelegationPayouts() // require second to last block as saved undelegations are AFTER undelegations are payed out