Skip to content

Commit 02129f9

Browse files
committed
Small bug fix
1 parent 92975df commit 02129f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/backend/ogmios.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _get_datum_from_kupo(self, datum_hash: str) -> Optional[RawCBOR]:
287287
"""
288288
datum = self._datum_cache.get(datum_hash, None)
289289

290-
if datum is not None or (datum is None and not self._is_chain_tip_updated()):
290+
if datum is not None or (datum_hash in self._datum_cache and not self._is_chain_tip_updated()):
291291
return datum
292292

293293
if self._kupo_url is None:

0 commit comments

Comments
 (0)