Skip to content

Commit

Permalink
Fix OnPersist (#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommo-L authored Sep 11, 2020
1 parent 8da92c8 commit 0208a15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/neo/SmartContract/Native/Tokens/NeoToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ protected override void OnPersist(ApplicationEngine engine)
// Set next committee
if (ShouldRefreshCommittee(engine.Snapshot.Height))
{
engine.Snapshot.Storages[CreateStorageKey(Prefix_Committee)].Value = ComputeCommitteeMembers(engine.Snapshot).ToArray().ToByteArray();
StorageItem storageItem = engine.Snapshot.Storages.GetAndChange(CreateStorageKey(Prefix_Committee));
storageItem.Value = ComputeCommitteeMembers(engine.Snapshot).ToArray().ToByteArray();
}
}

Expand Down

0 comments on commit 0208a15

Please sign in to comment.