Skip to content

Commit dda6da2

Browse files
authored
Merge pull request #214 from OpShin/feat/kupo_inline_datums
Only resolve inline datums in kupo
2 parents cae36ef + 36d4144 commit dda6da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/backend/ogmios.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def _utxos_kupo(self, address: str) -> List[UTxO]:
294294
if result["datum_hash"]
295295
else None
296296
)
297-
if datum_hash:
297+
if datum_hash and result.get("datum_type", "inline"):
298298
kupo_datum_url = self._kupo_url + "/datums/" + result["datum_hash"]
299299
datum_result = requests.get(kupo_datum_url).json()
300300
if datum_result and datum_result["datum"] != datum_hash:

0 commit comments

Comments
 (0)