diff --git a/Lib9c/Delegation/Delegatee.cs b/Lib9c/Delegation/Delegatee.cs index c5d194e178..1105887610 100644 --- a/Lib9c/Delegation/Delegatee.cs +++ b/Lib9c/Delegation/Delegatee.cs @@ -571,7 +571,10 @@ record = Repository.GetLumpSumRewardsRecord(this, lastStartHeight) Repository.RemoveLumpSumRewardsRecord(recordEach); } - Repository.SetRewardBase(rewardBase!); + if (rewardBase is RewardBase rewardBaseToSet) + { + Repository.SetRewardBase(rewardBaseToSet); + } } } }