Skip to content

Commit

Permalink
Revert one condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Nov 24, 2020
1 parent 8ce353d commit 5715b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/SmartContract/Native/Oracle/OracleContract.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected override void PostPersist(ApplicationEngine engine)
//Remove the id from IdList
key = CreateStorageKey(Prefix_IdList).Add(GetUrlHash(request.Url));
IdList list = engine.Snapshot.Storages.GetAndChange(key).GetInteroperable<IdList>();
if (!list.Remove(response.Id)) continue;
if (!list.Remove(response.Id)) throw new InvalidOperationException();
if (list.Count == 0) engine.Snapshot.Storages.Delete(key);

//Mint GAS for oracle nodes
Expand Down

0 comments on commit 5715b86

Please sign in to comment.