debug: add logging to see what's being extracted from payload
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Integration Tests / test-service-integration (push) Successful in 56s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 8s
P2P Network Verification / p2p-verification (push) Successful in 5s
Python Tests / test-python (push) Successful in 7s
Security Scanning / security-scan (push) Successful in 25s
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Integration Tests / test-service-integration (push) Successful in 56s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 8s
P2P Network Verification / p2p-verification (push) Successful in 5s
Python Tests / test-python (push) Successful in 7s
Security Scanning / security-scan (push) Successful in 25s
This commit is contained in:
@@ -323,10 +323,15 @@ async def submit_transaction(tx_data: TransactionRequest) -> Dict[str, Any]:
|
||||
chain_id = get_chain_id(None)
|
||||
|
||||
# Convert TransactionRequest to dict for normalization
|
||||
to_field = tx_data.payload.get("recipient") or tx_data.payload.get("to")
|
||||
amount_field = tx_data.payload.get("amount", tx_data.payload.get("value", 0))
|
||||
|
||||
_logger.info(f"Extracted to_field: {to_field}, amount_field: {amount_field}")
|
||||
|
||||
tx_data_dict = {
|
||||
"from": tx_data.sender,
|
||||
"to": tx_data.payload.get("recipient") or tx_data.payload.get("to"),
|
||||
"amount": tx_data.payload.get("amount", tx_data.payload.get("value", 0)),
|
||||
"to": to_field,
|
||||
"amount": amount_field,
|
||||
"fee": tx_data.fee,
|
||||
"nonce": tx_data.nonce,
|
||||
"payload": tx_data.payload,
|
||||
|
||||
Reference in New Issue
Block a user