Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions python/thirdweb-ai/src/thirdweb_ai/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ def clean_resolve(out: dict[str, Any]):
"""Clean the response from the resolve function."""
if "transactions" in out["data"]:
for transaction in out["data"]["transactions"]:
if "data" in transaction and is_encoded(transaction["data"]):
transaction.pop("data")
if "logs_bloom" in transaction:
transaction.pop("logs_bloom")
for key in list(transaction.keys()):
if key not in TRANSACTION_KEYS_TO_KEEP:
transaction.pop(key, None)
return out


Expand Down