We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cae36ef + 36d4144 commit dda6da2Copy full SHA for dda6da2
pycardano/backend/ogmios.py
@@ -294,7 +294,7 @@ def _utxos_kupo(self, address: str) -> List[UTxO]:
294
if result["datum_hash"]
295
else None
296
)
297
- if datum_hash:
+ if datum_hash and result.get("datum_type", "inline"):
298
kupo_datum_url = self._kupo_url + "/datums/" + result["datum_hash"]
299
datum_result = requests.get(kupo_datum_url).json()
300
if datum_result and datum_result["datum"] != datum_hash:
0 commit comments