Skip to content

Commit

Permalink
Update src/neo/SmartContract/Native/Tokens/NeoToken.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Zhang <erik@neo.org>
  • Loading branch information
Tommo-L and erikzhang authored Nov 1, 2020
1 parent 387565f commit 5e18673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/SmartContract/Native/Tokens/NeoToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void CheckCandidate(StoreView snapshot, ECPoint pubkey, CandidateState c
{
if (!candidate.Registered && candidate.Votes.IsZero)
{
foreach (var (rewardKey, _) in snapshot.Storages.Find(CreateStorageKey(Prefix_VoterRewardPerCommittee).Add(pubkey).ToArray()))
foreach (var (rewardKey, _) in snapshot.Storages.Find(CreateStorageKey(Prefix_VoterRewardPerCommittee).Add(pubkey).ToArray()).ToArray())
snapshot.Storages.Delete(rewardKey);
snapshot.Storages.Delete(CreateStorageKey(Prefix_Candidate).Add(pubkey));
}
Expand Down

0 comments on commit 5e18673

Please sign in to comment.