debug: add logging for 'to' field to diagnose issue
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 11s
Integration Tests / test-service-integration (push) Successful in 1m4s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 7s
P2P Network Verification / p2p-verification (push) Successful in 10s
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 11s
Integration Tests / test-service-integration (push) Successful in 1m4s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 7s
P2P Network Verification / p2p-verification (push) Successful in 10s
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
This commit is contained in:
@@ -205,7 +205,7 @@ def _serialize_receipt(receipt: Receipt) -> Dict[str, Any]:
|
||||
class TransactionRequest(BaseModel):
|
||||
type: str = Field(description="Transaction type, e.g. TRANSFER, RECEIPT_CLAIM, GPU_MARKETPLACE, EXCHANGE, MESSAGE")
|
||||
sender: str = Field(alias="from") # Accept both "sender" and "from"
|
||||
to: str = Field(description="Recipient address (required for TRANSFER)")
|
||||
recipient: str = Field(alias="to") # Accept both "recipient" and "to"
|
||||
nonce: int
|
||||
fee: int = Field(ge=0)
|
||||
payload: Dict[str, Any]
|
||||
@@ -329,6 +329,8 @@ async def submit_transaction(tx_data: TransactionRequest) -> Dict[str, Any]:
|
||||
}
|
||||
|
||||
_logger.info(f"tx_data.to: {tx_data.to}, tx_data_dict['to']: {tx_data_dict['to']}")
|
||||
_logger.info(f"tx_data.to is None: {tx_data.to is None}")
|
||||
_logger.info(f"tx_data.payload.get('to') is None: {tx_data.payload.get('to') is None}")
|
||||
|
||||
_logger.info(f"Initial tx_data_dict amount: {tx_data_dict['amount']}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user