native: do not fail on missing request in Oracle.PostPersist()

This commit is contained in:
Evgenii Stratonikov 2020-12-01 11:18:59 +03:00
parent cba117352c
commit 1db27c004e

View file

@ -153,7 +153,7 @@ func (o *Oracle) PostPersist(ic *interop.Context) error {
reqKey := makeRequestKey(resp.ID)
req := new(state.OracleRequest)
if err := o.getSerializableFromDAO(ic.DAO, reqKey, req); err != nil {
return err
continue
}
if err := ic.DAO.DeleteStorageItem(o.ContractID, reqKey); err != nil {
return err