Simplify AI handler to submit directly to Agent Coordinator without wallet signing
Some checks failed
CLI Tests / test-cli (push) Failing after 2s
Security Scanning / security-scan (push) Has been cancelled

This commit is contained in:
aitbc
2026-04-28 17:34:38 +02:00
parent 565ca25e85
commit d997ced044

View File

@@ -72,27 +72,6 @@ def handle_ai_submit(args, default_rpc_url, first, read_password, render_mapping
except Exception:
actual_nonce = 0
# Create transaction with AI job payload
transaction = {
"type": "TRANSFER",
"chain_id": chain_id,
"from": sender_address,
"nonce": actual_nonce,
"fee": 10,
"payload": {
"recipient": "ait0000000000000000000000000000000000000000", # AI service address
"amount": payment if payment else 50,
"job_type": model,
"prompt": prompt
}
}
# Sign transaction
import json
message = json.dumps(transaction, sort_keys=True).encode()
signature = private_key.sign(message)
transaction["signature"] = signature.hex()
job_data = {
"task_data": {
"agent_id": sender_address,