Skip to content

Commit

Permalink
https://github.com/neo-project/neo/pull/2074
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Jan 26, 2021
1 parent 6e1befb commit 489dd65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neo3/contracts/native/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ def post_persist(self, engine: contracts.ApplicationEngine) -> None:

# remove request from storage
sk_request = storage.StorageKey(self.script_hash, self._PREFIX_REQUEST + response.id.to_bytes(8, 'little'))
si_request = engine.snapshot.storages.get(sk_request)
si_request = engine.snapshot.storages.try_get(sk_request)
if si_request is None:
continue
request = OracleRequest.deserialize_from_bytes(si_request.value)
engine.snapshot.storages.delete(sk_request)

Expand Down

0 comments on commit 489dd65

Please sign in to comment.