Fix agent message to use modern transaction payload format
Some checks failed
CLI Tests / test-cli (push) Failing after 3s
Security Scanning / security-scan (push) Has been cancelled

This commit is contained in:
aitbc
2026-04-28 17:21:48 +02:00
parent 3a2789a718
commit de3e31cc0a

View File

@@ -1141,14 +1141,16 @@ def agent_operations(action: str, **kwargs) -> Optional[Dict]:
actual_nonce = 0
tx = {
"type": "transfer",
"type": "TRANSFER",
"chain_id": chain_id,
"from": sender_address,
"to": agent,
"amount": 0,
"fee": 10,
"nonce": actual_nonce,
"payload": message,
"chain_id": chain_id
"fee": 10,
"payload": {
"recipient": agent,
"amount": 0,
"message": message
}
}
# Sign transaction