We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943cb4f commit bd23dbaCopy full SHA for bd23dba
python/thirdweb-ai/src/thirdweb_ai/common/utils.py
@@ -56,10 +56,9 @@ def clean_resolve(out: dict[str, Any]):
56
"""Clean the response from the resolve function."""
57
if "transactions" in out["data"]:
58
for transaction in out["data"]["transactions"]:
59
- if "data" in transaction and is_encoded(transaction["data"]):
60
- transaction.pop("data")
61
- if "logs_bloom" in transaction:
62
- transaction.pop("logs_bloom")
+ for key in list(transaction.keys()):
+ if key not in TRANSACTION_KEYS_TO_KEEP:
+ transaction.pop(key, None)
63
return out
64
65
0 commit comments