Skip to content

Commit

Permalink
Fix OnPersist (neo-project#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommo-L authored and Shawn committed Jan 8, 2021
1 parent 36eb9ca commit 419b078
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 419b078

Please sign in to comment.