Skip to content

Commit

Permalink
fix: Fix Migration to skip set RewardBase when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
OnedgeLee committed Dec 11, 2024
1 parent dd0592e commit 444a946
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib9c/Delegation/Delegatee.cs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,10 @@ record = Repository.GetLumpSumRewardsRecord(this, lastStartHeight)
Repository.RemoveLumpSumRewardsRecord(recordEach);
}

Repository.SetRewardBase(rewardBase!);
if (rewardBase is RewardBase rewardBaseToSet)
{
Repository.SetRewardBase(rewardBaseToSet);
}
}
}
}

0 comments on commit 444a946

Please sign in to comment.